Created
October 19, 2012 08:24
-
-
Save jmervine/3916937 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" for use before a colorscheme definition | |
autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red | |
" for use when not using a colorscheme | |
" highlight ExtraWhitespace ctermbg=red guibg=red | |
" show unwanted whitespace | |
match ExtraWhitespace /\s\+\%#\@<!$/ | |
" strip unwanted trailing whitespace on save | |
autocmd BufWritePre * :%s/\s\+$//e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment