commit b8cb324473cdacea72104ed97249ffdbdb7f4c81 parent f8e71ba098e48dee9c45f97b02409f222720bb48 Author: Chris Bracken <cbracken@google.com> Date: Wed, 28 Mar 2012 13:18:18 -0700 Highlight trailing whitespace Diffstat:
M | .vim/.vimrc | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/.vim/.vimrc b/.vim/.vimrc @@ -36,6 +36,13 @@ if &t_Co > 2 || has("gui_running") set background=dark colorscheme blackboard set guifont=Menlo:h12 + + " Highlight trailing whitespace + 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\+$/ endif if has("autocmd")