Browse files

make sure that vimrc is sourced on save

  • Loading branch information...
1 parent ff5ad46 commit fab88b089cc1e184e5a1547170e7ebca645019fd Steve P. Sharpe committed Apr 22, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 vimrc
View
5 vimrc
@@ -19,6 +19,11 @@ nnoremap k gk
inoremap jj <ESC>
+" Source the vimrc file after saving it
+if has("autocmd")
+ autocmd! bufwritepost .vimrc source $MYVIMRC
+endif
+
if exists(":Tabularize")
nmap <Leader>a= :Tabularize /=<CR>
vmap <Leader>a= :Tabularize /=<CR>

0 comments on commit fab88b0

Please sign in to comment.