Permalink
Browse files

fix syntastic

  • Loading branch information...
1 parent 75fda22 commit 2affe3ae4bfc173c08caf807a5461a09f2769888 Yodi aditya committed Aug 28, 2011
Showing with 18 additions and 0 deletions.
  1. +18 −0 .vimrc
View
18 .vimrc
@@ -532,6 +532,24 @@ if has("gui_running")
highlight SpellBad term=underline gui=undercurl guisp=Orange
endif
+
+"for Syntastic
+let g:syntastic_enable_signs=1
+let g:syntastic_quiet_warnings=1
+let g:syntastic_auto_loc_list=1
+
+
+"remove trailing whitespace
+"http://vim.wikia.com/wiki/Remove_unwanted_spaces#Automatically_removing_all_trailing_whitespace
+autocmd BufWritePre *.c :%s/\s\+$//e
+autocmd BufWritePre *.cpp :%s/\s\+$//e
+autocmd BufWritePre *.c++ :%s/\s\+$//e
+autocmd BufWritePre *.h :%s/\s\+$//e
+autocmd BufWritePre *.java :%s/\s\+$//e
+autocmd BufWritePre *.php :%s/\s\+$//e
+autocmd BufWritePre *.pl :%s/\s\+$//e
+autocmd BufWritePre *.py :%s/\s\+$//e
+
" Enable autoclose tags only for html
"http://mirnazim.org/writings/vim-plugins-i-use/
" autocmd FileType html,htmldjango,jinjahtml,eruby,mako let b:closetag_html_style=1

0 comments on commit 2affe3a

Please sign in to comment.