diff --git a/plugin/trailing-whitespace.vim b/plugin/trailing-whitespace.vim index 104c0b9..1d90b8a 100644 --- a/plugin/trailing-whitespace.vim +++ b/plugin/trailing-whitespace.vim @@ -13,7 +13,7 @@ function! ShouldMatchWhitespace() endfunction " Highlight EOL whitespace, http://vim.wikia.com/wiki/Highlight_unwanted_spaces -highlight ExtraWhitespace ctermbg=darkred guibg=#382424 +highlight default ExtraWhitespace ctermbg=darkred guibg=#382424 autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red autocmd BufWinEnter * if ShouldMatchWhitespace() | match ExtraWhitespace /\s\+$/ | endif