aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-10 00:24:16 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-10 00:24:16 +1200
commit3b9f97803d7b84c9f67e2629a2bf77344d345838 (patch)
tree0635368db192b78ee8d9a1eecbfce603ec578fc1
parentExpand <C-K> documentation, add Steve Losh's link (diff)
downloaddotfiles-3b9f97803d7b84c9f67e2629a2bf77344d345838.tar.gz
dotfiles-3b9f97803d7b84c9f67e2629a2bf77344d345838.zip
Refactor comment on SourceCmd hook block
-rw-r--r--vim/vimrc8
1 files changed, 5 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 83f4328d..9ddd9687 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -201,8 +201,8 @@ command! FileTypeReload
\| doautocmd filetypedetect BufRead
\|endif
-" Note that the SourceCmd event wasn't added until Vim 7.0.187, so we need to
-" check it exists first.
+" Now we'll use that new :FileTypeReload command as part of an automatic
+" command hook that runs whenever this vimrc is sourced.
"
" If there's stuff in any of your filetype plugins that doesn't cope well with
" being reloaded, and just assumes a single BufRead event, it might be
@@ -210,7 +210,9 @@ command! FileTypeReload
" 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.
+" this main file is saved, using :doautocmd abstraction. Note also that the
+" SourceCmd event wasn't added until Vim 7.0.187, so we need to check it
+" exists first.
"
if exists('##SourceCmd')
autocmd vimrc SourceCmd $MYVIMRC