From: Samir Benmendil Date: Thu, 27 Mar 2014 13:06:54 +0000 (+0000) Subject: vimrc: add shortcuts for vimrc + autosource on save X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/89a4b8e019f6bc3a4e0230ddc17ef0806cefb766 vimrc: add shortcuts for vimrc + autosource on save --- diff --git a/vim/vimrc b/vim/vimrc index ac1529e..bebb15a 100644 --- 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 v :tabedit $MYVIMRC + " 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.