diff options
-rw-r--r-- | vim/.vimrc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -35,6 +35,8 @@ autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/ autocmd InsertLeave * match ExtraWhitespace /\s\+$/ autocmd BufWinLeave * call clearmatches() +autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red + " Clear trailing spaces on <F2> function TrimWhiteSpace() |