Last active
October 4, 2015 04:28
-
-
Save benwoodward/2577457 to your computer and use it in GitHub Desktop.
Vim shortcut to emove trailing whitespace
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
" remove trailing whitespace (don't use on binary files!!) | |
map <leader>tws :%s/\s\+$//<CR> | |
" go to previous file | |
map <Leader>p <C-^> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment