aboutsummaryrefslogtreecommitdiff
path: root/vim/filetype.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-11 15:16:11 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-11 15:16:11 +1200
commit2569982534dea9188b6f3e6ad3c2157f060b7713 (patch)
tree66717a49e90caa47f9a55850fce62e0091c42586 /vim/filetype.vim
parentApply t_cm hack to Makefile Vim invocation (diff)
downloaddotfiles-2569982534dea9188b6f3e6ad3c2157f060b7713.tar.gz
dotfiles-2569982534dea9188b6f3e6ad3c2157f060b7713.zip
Add crontab(5) Vim filetype
Diffstat (limited to 'vim/filetype.vim')
-rw-r--r--vim/filetype.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/filetype.vim b/vim/filetype.vim
index d7cafef9..1c3c108a 100644
--- a/vim/filetype.vim
+++ b/vim/filetype.vim
@@ -23,6 +23,10 @@ augroup filetypedetect
autocmd BufNewFile,BufRead
\ *.c++,*.cpp,*.cxx,*.hh
\ setfiletype cpp
+ " crontab(5) files
+ autocmd BufNewFile,BufRead
+ \ crontab,*/cron.*/*
+ \ setfiletype crontab
" CSS files
autocmd BufNewFile,BufRead
\ *.css