aboutsummaryrefslogtreecommitdiff
path: root/vim/filetype.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/filetype.vim')
-rw-r--r--vim/filetype.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/filetype.vim b/vim/filetype.vim
index fdf75d59..6c40dec1 100644
--- a/vim/filetype.vim
+++ b/vim/filetype.vim
@@ -458,6 +458,9 @@ augroup filetypedetect
\,zshrc
\ setfiletype zsh
+ " Load any extra rules in ftdetect directories
+ runtime! ftdetect/*.vim
+
" Generic text, config, and log files, if no type assigned yet
autocmd BufNewFile,BufRead
\ ?*.text
@@ -478,9 +481,6 @@ augroup filetypedetect
\,*.log
\ setf messages
- " Load any extra rules in ftdetect directories
- runtime! ftdetect/*.vim
-
" Clumsy attempt at typing files in `sudo -e` if a filename hasn't already
" been found; strip temporary extension and re-run
autocmd BufNewFile,BufRead