039cb7662d50

vim: reloading .vimrc
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Tue, 27 Jul 2010 20:19:58 -0400
parents 45b16bbe73c2
children b3642d06bd41
branches/tags (none)
files vim/.vimrc

Changes

--- a/vim/.vimrc	Tue Jul 27 11:06:14 2010 -0400
+++ b/vim/.vimrc	Tue Jul 27 20:19:58 2010 -0400
@@ -197,3 +197,9 @@
 
 " Diff
 nmap <leader>d :!hg diff %<cr>
+
+" Autosource .vimrc
+autocmd bufwritepost .vimrc source $MYVIMRC
+autocmd bufwritepost .vimrc source $MYGVIMRC
+nmap <leader>V <C-w><C-v><C-l>:e $MYVIMRC<cr>
+