summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-03-30 22:55:54 +1300
committerDavid Phillips <david@yeah.nah.nz>2019-03-31 22:11:31 +1300
commit27b802561314ecae04e6ee128e444a69bb00f433 (patch)
treee5ad2b9366169548b7a77072070c9b11ba4fa816 /vimrc
parent96e7fbc88ace0698a759cf83a9308953851dd019 (diff)
downloaddotfiles-27b802561314ecae04e6ee128e444a69bb00f433.tar.xz
vimrc: Add folding, reduce contrast of listchars
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc15
1 files changed, 10 insertions, 5 deletions
diff --git a/vimrc b/vimrc
index 17241f6..51f2561 100644
--- a/vimrc
+++ b/vimrc
@@ -1,5 +1,9 @@
syntax on
-set cc=80
+set cc=80,120
+set number
+
+set foldmethod=syntax
+set nofoldenable
set autoindent
set tabstop=4
@@ -13,16 +17,17 @@ map <ESC>[1;5D <C-Left>
map! <ESC>[1;5C <C-Right>
map! <ESC>[1;5D <C-Left>
-"set listchars=tab:▸\ ,trail:·,space:·
-set listchars=tab:→\ ,trail:·,space:·
+set listchars=tab:─\ ,trail:·,space:·,nbsp:␣,extends:⯈,precedes:⯇
+set showbreak=\\
set list
highlight ExtraWhitespace ctermbg=red guibg=red
+highlight SpecialKey ctermfg=23
+highlight NonText ctermfg=23
+highlight Folded ctermbg=0
match ExtraWhitespace /\s\+$/
-set number
-
inoremap <CR> <CR>x<BS>
nnoremap o ox<BS>
nnoremap O Ox<BS>