always highlight useless whitespaces in vim
This commit is contained in:
parent
614c6205dd
commit
54de52ad51
@ -2,3 +2,9 @@ syntax on
|
||||
set number
|
||||
colorscheme desert
|
||||
set laststatus=2
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user