Skip to content

Instantly share code, notes, and snippets.

@chrishunt
Last active December 17, 2015 02:39
Show Gist options
  • Save chrishunt/5537390 to your computer and use it in GitHub Desktop.
Save chrishunt/5537390 to your computer and use it in GitHub Desktop.
Remove trailing whitespace for all files in a project using vim
:args `git grep -l .`
:argdo :%s/\s\+$//gc | w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment