diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-11 09:42:43 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-11 09:42:43 +1200 |
commit | e5accd86dee3530361525686531db9cf9e04fbe3 (patch) | |
tree | 54d093b2019355cb5cb05bf151e9c13883efc228 | |
parent | Check MYVIM is not blank in spellfile plugin (diff) | |
download | dotfiles-e5accd86dee3530361525686531db9cf9e04fbe3.tar.gz dotfiles-e5accd86dee3530361525686531db9cf9e04fbe3.zip |
Rearrange blocks in vimrc
-rw-r--r-- | vim/vimrc | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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. " |