aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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