diff options
author | Ekaitz Zárraga <ekaitz.zarraga@gmail.com> | 2016-05-16 15:55:25 +0200 |
---|---|---|
committer | Ekaitz Zárraga <ekaitz.zarraga@gmail.com> | 2016-05-16 15:55:25 +0200 |
commit | c8574012e4d8a826f6f390559531390ecf9d103f (patch) | |
tree | 59ba595d192a06af456f2de9acfddc9e8a85394a | |
parent | e8635d9825063e73eaef67ec68397f4d332471a2 (diff) |
Highlight extra whitespaces in colorscheme
-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() |