Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reload vimrc and gvimrc whenever either one is saved.

Previously, only the vimrc file was sourced.
  • Loading branch information...
commit cbaea1f50c78798b309b9ab5210b5d6f3f425611 1 parent 9702c54
@nelstrom authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  vimrc
View
2  vimrc
@@ -209,7 +209,7 @@ nmap <leader>v :e $MYVIMRC<CR>
if has("autocmd")
augroup myvimrchooks
au!
- autocmd bufwritepost .vimrc source ~/.vimrc
+ au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif
augroup END
endif

0 comments on commit cbaea1f

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