Added bit to highlight trailing whitespace in red

This commit is contained in:
Josh Sherman 2012-02-20 13:49:00 -05:00
parent a67bdde993
commit 997eabfbba

6
vimrc
View file

@ -79,6 +79,12 @@ syntax sync fromstart
hi NonText ctermfg=237 guifg=#303030
hi SpecialKey ctermfg=237 guifg=#303030
highlight ExtraWhitespace ctermbg=red guibg=red
au ColorScheme * highlight ExtraWhitespace guibg=red
au BufEnter * match ExtraWhitespace /\s\+$/
au InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
au InsertLeave * match ExtraWhiteSpace /\s\+$/
set statusline=%f
set statusline+=%h
set statusline+=%y