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:
Gwen Lofman 2017-11-19 21:55:08 -09:00
parent 5b703de619
commit 7141f9dd7b

View File

@ -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