aboutsummaryrefslogtreecommitdiff
path: root/vim/filetype.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-18 08:48:30 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-18 08:48:52 +1200
commite050c970bfdbbdc65f9c6135ac021a10a8b8b168 (patch)
treebad0cd67ce63259d1d404860eed6534783d6d4fd /vim/filetype.vim
parentCorrect a filetype.vim comment (diff)
downloaddotfiles-e050c970bfdbbdc65f9c6135ac021a10a8b8b168.tar.gz
dotfiles-e050c970bfdbbdc65f9c6135ac021a10a8b8b168.zip
Add fallback log filetype
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