diff options
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -274,6 +274,11 @@ endfunction call LoadTags() augroup WhiteSpaces + "set list listchars=tab:├─>,precedes:◂,extends:▸,nbsp:␣,space:·,trail:• + set list listchars=tab:│ ,precedes:…,extends:▸,nbsp:␣,space:· + set fillchars=vert:│,stl:─,stlnc:─,fold:─,diff:x + nmap <F3> :set invlist<CR> + " F*cking whitespaces function! HighLightExtraSpacesAndColumns() highlight ExtraWhitespace ctermbg=160 ctermfg=none guibg=red @@ -283,16 +288,17 @@ augroup WhiteSpaces endif endfunction autocmd BufRead * call HighLightExtraSpacesAndColumns() + autocmd WinEnter * call HighLightExtraSpacesAndColumns() autocmd OptionSet textwidth call HighLightExtraSpacesAndColumns() + + "Don’t overwrite the whitespaces colors on cursor line… + autocmd WinEnter * call matchadd('SpecialKey', '\s\+', -1) + augroup END set colorcolumn=+1 hi colorcolumn ctermbg=none ctermfg=238 cterm=bold,underline -set list listchars=tab:│ ,precedes:‥,extends:‥,nbsp:␣ -set fillchars=vert:│,stl:─,stlnc:─,fold:-,diff:x -nmap <F3> :set invlist<CR> - set title set autoindent set diffopt=iwhite,filler,vertical |