aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-25 22:16:54 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-25 22:16:54 +1200
commitbff3a1edba6dff217e6b52fe8ee3fde53a078350 (patch)
tree45e1a01bdf93e8c605828393af30b1a153a42446
parentb96e8a16163d6f013b6861e5e78449f1c216c6fc (diff)
downloaddotfiles-bff3a1edba6dff217e6b52fe8ee3fde53a078350.tar.gz
Expand/fix messages filetype detection
-rw-r--r--vim/filetype.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/filetype.vim b/vim/filetype.vim
index d5c9bdb8..69847ba7 100644
--- a/vim/filetype.vim
+++ b/vim/filetype.vim
@@ -488,8 +488,8 @@ augroup filetypedetect
\ setfiletype config
autocmd BufNewFile,BufRead
\ */log/*
- \,*.log
- \ setf messages
+ \,?*.log
+ \ setfiletype messages
" Clumsy attempt at typing files in `sudo -e` if a filename hasn't already
" been found; strip temporary extension and re-run