Skip to content

Instantly share code, notes, and snippets.

@benwoodward
Last active October 4, 2015 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benwoodward/2577457 to your computer and use it in GitHub Desktop.
Save benwoodward/2577457 to your computer and use it in GitHub Desktop.
Vim shortcut to emove trailing whitespace
" 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