Created
January 15, 2013 08:07
-
-
Save olof/4537120 to your computer and use it in GitHub Desktop.
Vim highlighting trailing whitespace
This file contains hidden or 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
" hilight trailing whitespace | |
highlight wsEOL ctermbg=red guibg=red | |
match wsEOL /\v\s+$/ | |
au InsertLeave * match wsEOL /\v\s+$/ | |
au InsertEnter * match wsEOL /\v\s+\%#\@<!$/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment