diff options
author | Hugues Hiegel <hugues.hiegel@advisorsla.com> | 2019-08-29 11:06:19 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@advisorsla.com> | 2019-08-29 11:07:54 +0200 |
commit | c04b9a27f52c8e01d91accdb60f63a66c732149b (patch) | |
tree | 4eabc3bc95d2e6dee1be1e2e1c87aa50ad406390 /vimrc | |
parent | 454f6d833fe074c5165051998b55e3058cbaaefa (diff) |
[listchars] Manage spaces + tweak colors
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 |