Last active
December 15, 2015 09:29
-
-
Save allspiritseve/5238696 to your computer and use it in GitHub Desktop.
Highlight invalid white space at the end of a line
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
autocmd InsertEnter * syn clear EOLWS | syn match EOLWS excludenl /\s\+\%#\@!$/ | |
autocmd InsertLeave * syn clear EOLWS | syn match EOLWS excludenl /\s\+$/ | |
highlight EOLWS ctermbg=red guibg=red |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment