Permalink
Browse files

Delete trailing whitespace on save. THIS ONE IS FOR YOU @mattyoho.

  • Loading branch information...
spicycode committed Jan 7, 2013
1 parent 897c499 commit 43fa62f996cb0389421d37c722e67131135a52e0
Showing with 3 additions and 0 deletions.
  1. +3 −0 auto_commands.vim
View
@@ -10,3 +10,6 @@ autocmd BufWritePre {*.coffee,*.js} :%s/\
" Resize splits when the window is resized
autocmd VimResized * exe "normal! \<c-w>="
+
+" Delete trailing whitespace on save
+autocmd BufWritePre * :%s/\s\+$//e

0 comments on commit 43fa62f

Please sign in to comment.