initial checkin

This commit is contained in:
Scott Bronson
2010-08-11 12:28:48 -07:00
commit e10ca02d0d
3 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
" Highlight EOL whitespace, http://vim.wikia.com/wiki/Highlight_unwanted_spaces
highlight ExtraWhitespace ctermbg=darkred guibg=#382424
autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
" the above flashes annoyingly while typing, be calmer in insert mode
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
" Run :FixWhitespace to remove end of line white space.
command! -range=% FixWhitespace silent! keepjumps <line1>,<line2>substitute/\s\+$//