Remove trailing whitespace higlight
It's really annoying when writing commit messages, as it hilights trailing spaces in the files that git generates.
This commit is contained in:
parent
5b703de619
commit
7141f9dd7b
|
@ -2,11 +2,4 @@ set encoding=utf-8
|
|||
|
||||
set list listchars=tab:→\ ,trail:·
|
||||
|
||||
highlight ExtraWhitespace ctermbg=red guibg=red
|
||||
match ExtraWhitespace /\s\+$/
|
||||
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
|
||||
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
|
||||
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
|
||||
autocmd BufWinLeave * call clearmatches()
|
||||
|
||||
syntax on
|
||||
|
|
Loading…
Reference in New Issue
Block a user