Permalink
Browse files

Remove comma when close. from @yuroyoro

  • Loading branch information...
Surgo committed Feb 17, 2012
1 parent c44a974 commit fa10f9035446902cb6321c6d103e3de62f6b86d6
Showing with 3 additions and 0 deletions.
  1. +3 −0 .vimrc
View
3 .vimrc
@@ -121,6 +121,9 @@ endfunction
inoremap <Tab> <C-r>=InsertTabWrapper()<CR>
""Spacing after commma
inoremap , ,<Space>
+"" Remove commma when close.
+autocmd BufWritePre * :%s/\s\+$//ge
+autocmd BufWritePre * :%s/\t/ /ge
"Search
set wrapscan

0 comments on commit fa10f90

Please sign in to comment.