diff options
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -160,8 +160,12 @@ augroup END " apply immediately in the current editing session. This often makes broken " changes immediately apparent. " -autocmd vimrc BufWritePost $MYVIMRC,$MYVIM/vimrc +autocmd vimrc BufWritePost $MYVIMRC \ source $MYVIMRC +if $MYVIMRC !=# '' + autocmd vimrc BufWritePost $MYVIM/vimrc + \ doautocmd vimrc BufWritePost $MYVIMRC +endif " Similarly, if this file or the vimrc stub that calls it is sourced, whether " because of the above hook, or the <Leader>R mapping prescribed later in this |