vim

vim config files
git clone https://git.bracken.jp/vim.git
Log | Files | Refs | LICENSE

commit c9fa81dce6b298f09ade8df9c1cf748d3a8c6ade
parent 3f4a89ce782a73ab2ae786e362041435104bb1cc
Author: Chris Bracken <cbracken@google.com>
Date:   Wed, 28 Mar 2012 13:18:18 -0700

Highlight trailing whitespace

Diffstat:
M.vimrc | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/.vimrc b/.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")