From 4f373ed73a78fbab1128437f88f60050eabf9f10 Mon Sep 17 00:00:00 2001 From: Ahir Reddy Date: Tue, 23 Jul 2013 09:03:32 -0700 Subject: [PATCH] white space filtering apply to all file types --- .vimrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.vimrc b/.vimrc index e1d8f9b77..843d9c0bd 100644 --- a/.vimrc +++ b/.vimrc @@ -93,9 +93,9 @@ let g:pymode_syntax_space_errors = g:pymode_syntax_all let g:pymode_folding = 0 " Highlight trailing white space and delete on save -autocmd InsertLeave *.py, *.js, *.c, *.h match ErrorMsg '\s\+$' -autocmd InsertEnter *.py, *.js, *.c, *.h call clearmatches() -autocmd BufWritePre *.py, *.js, *.c, *.h :%s/\s\+$//e +autocmd InsertLeave * match ErrorMsg '\s\+$' +autocmd InsertEnter * call clearmatches() +autocmd BufWritePre * :%s/\s\+$//e " automatically change window's cwd to file's dir set autochdir