diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-18 08:48:30 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-18 08:48:52 +1200 |
commit | e050c970bfdbbdc65f9c6135ac021a10a8b8b168 (patch) | |
tree | bad0cd67ce63259d1d404860eed6534783d6d4fd /vim | |
parent | Correct a filetype.vim comment (diff) | |
download | dotfiles-e050c970bfdbbdc65f9c6135ac021a10a8b8b168.tar.gz dotfiles-e050c970bfdbbdc65f9c6135ac021a10a8b8b168.zip |
Add fallback log filetype
Diffstat (limited to 'vim')
-rw-r--r-- | vim/filetype.vim | 6 |
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 |