Created
September 19, 2012 02:25
-
-
Save jstirk/3747294 to your computer and use it in GitHub Desktop.
vim whitespace helpers
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
" ,W to strip all trailing whitespace | |
nnoremap <leader>W mZ:%s/\s\+$//<cr>:let @/=''<CR>`Z | |
" Display trailing spaces and tabs differently. In this case, | |
" show them as dark grey, and with certain characters. | |
set list listchars=tab:⇀\ ,trail:. | |
:highlight SpecialKey ctermfg=darkgrey guibg=black |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment