Added bit to highlight trailing whitespace in red
This commit is contained in:
parent
a67bdde993
commit
997eabfbba
1 changed files with 6 additions and 0 deletions
6
vimrc
6
vimrc
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue