diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-10 00:24:16 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-10 00:24:16 +1200 |
commit | 3b9f97803d7b84c9f67e2629a2bf77344d345838 (patch) | |
tree | 0635368db192b78ee8d9a1eecbfce603ec578fc1 | |
parent | Expand <C-K> documentation, add Steve Losh's link (diff) | |
download | dotfiles-3b9f97803d7b84c9f67e2629a2bf77344d345838.tar.gz dotfiles-3b9f97803d7b84c9f67e2629a2bf77344d345838.zip |
Refactor comment on SourceCmd hook block
-rw-r--r-- | vim/vimrc | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |