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, 5 insertions, 1 deletions
diff --git a/vim/filetype.vim b/vim/filetype.vim
index 80c93412..fdf75d59 100644
--- a/vim/filetype.vim
+++ b/vim/filetype.vim
@@ -458,7 +458,7 @@ augroup filetypedetect
\,zshrc
\ setfiletype zsh
- " Generic text and config files, if no type assigned yet
+ " Generic text, config, and log files, if no type assigned yet
autocmd BufNewFile,BufRead
\ ?*.text
\,?*.txt
@@ -473,6 +473,10 @@ augroup filetypedetect
\,?*.config
\,/etc/*
\ setfiletype config
+ autocmd BufNewFile,BufRead
+ \ */log/*
+ \,*.log
+ \ setf messages
" Load any extra rules in ftdetect directories
runtime! ftdetect/*.vim