aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 46bbf08f..7745ca87 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -186,6 +186,9 @@ command! FileTypeReload
" rewrite those parts to be idempotent, or to add load guards around them so
" that they only run once.
"
+" Note that we reload the stub ~/.vimrc or ~/_vimrc file when either it or
+" this main file is saved, using :doautocmd abstraction.
+"
if exists('##SourceCmd')
autocmd vimrc SourceCmd $MYVIMRC
\ source <afile> | FileTypeReload