From e5accd86dee3530361525686531db9cf9e04fbe3 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 11 Jun 2019 09:42:43 +1200 Subject: Rearrange blocks in vimrc --- vim/vimrc | 20 ++++++++++---------- 1 file 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 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. " -- cgit v1.2.3