aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-09 16:27:46 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-09 16:27:46 +1200
commit069c7f7bb8d146f8f70683c45f5e9275da6cdb6d (patch)
tree98d589464d50f038d94ef0bc66be3b8aa739e81e
parentCheck MYVIM more completely before adding to &rtp (diff)
downloaddotfiles-069c7f7bb8d146f8f70683c45f5e9275da6cdb6d.tar.gz
dotfiles-069c7f7bb8d146f8f70683c45f5e9275da6cdb6d.zip
Add a bit more commentary on vimrc reloading
-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