aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-11 09:42:43 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-11 09:42:43 +1200
commite5accd86dee3530361525686531db9cf9e04fbe3 (patch)
tree54d093b2019355cb5cb05bf151e9c13883efc228
parentCheck MYVIM is not blank in spellfile plugin (diff)
downloaddotfiles-e5accd86dee3530361525686531db9cf9e04fbe3.tar.gz
dotfiles-e5accd86dee3530361525686531db9cf9e04fbe3.zip
Rearrange blocks in vimrc
-rw-r--r--vim/vimrc20
1 files changed, 10 insertions, 10 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 32a96909..7dddad82 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -165,16 +165,6 @@ if $MYVIM !=# ''
EnsureDir $MYVIM
endif
-" Create a 'vimrc' automatic command hook group, if it doesn't already exist,
-" and clear away any automatic command hooks already defined within it if it
-" does. This way, we don't end up collecting multiple copies of the hooks
-" configured in the rest of this file if it's reloaded. I don't want to make
-" the :augroup span the entire file, though.
-"
-augroup vimrc
- autocmd!
-augroup END
-
" If this file or the vimrc stub that calls it is sourced, whether because of
" the above hook, or the <Leader>R mapping prescribed later in this file, add
" a hook that re-runs filetype detection and thereby ftplugin loading. This
@@ -190,6 +180,16 @@ command! FileTypeReload
\| doautocmd filetypedetect BufRead
\|endif
+" Create a 'vimrc' automatic command hook group, if it doesn't already exist,
+" and clear away any automatic command hooks already defined within it if it
+" does. This way, we don't end up collecting multiple copies of the hooks
+" configured in the rest of this file if it's reloaded. I don't want to make
+" the :augroup span the entire file, though.
+"
+augroup vimrc
+ autocmd!
+augroup END
+
" Now we'll use that new :FileTypeReload command as part of an automatic
" command hook that runs whenever this vimrc is sourced.
"