Skip to content
Browse files

whitespace

  • Loading branch information...
1 parent d00ea05 commit de2b60a4bf1a0b607f84a3f17dd3d58eabce0434 Tyler Ball committed Oct 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 _vim/plugin/whitespace.vim
View
2 _vim/plugin/whitespace.vim
@@ -11,4 +11,4 @@ autocmd FileAppendPre * :silent call TrimWhiteSpace()
autocmd FilterWritePre * :silent call TrimWhiteSpace()
autocmd BufWritePre * :silent call TrimWhiteSpace()
-autocmd BufReadPre * if !exists('b:auto_trim_whitespace') | let b:auto_trim_whitespace = 1 | endif
+autocmd BufWritePre,BufNew * if !exists('b:auto_trim_whitespace') | let b:auto_trim_whitespace = 1 | endif

0 comments on commit de2b60a

Please sign in to comment.
Something went wrong with that request. Please try again.