]> git.rmz.io Git - dotfiles.git/commitdiff
vimrc: add shortcuts for vimrc + autosource on save
authorSamir Benmendil <samir.benmendil@gmail.com>
Thu, 27 Mar 2014 13:06:54 +0000 (13:06 +0000)
committerSamir Benmendil <samir.benmendil@gmail.com>
Thu, 27 Mar 2014 13:06:54 +0000 (13:06 +0000)
vim/vimrc

index ac1529ea5d4159c7a0a57d21269af133e651e9b9..bebb15ab362519c47ad1a7843abcc01a17912a2e 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -315,6 +315,10 @@ let g:tex_flavor='latex'
 let g:Tex_DefaultTargetFormat='pdf'
 
 " functions {{{1
+" auto source vimrc when saved
+autocmd bufwritepost vimrc source $MYVIMRC
+nmap <leader>v :tabedit $MYVIMRC<CR>
+
 " Convenient command to see the difference between the current buffer and the
 " file it was loaded from, thus the changes you made.
 " Only define it when not defined already.