aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-11-22 18:49:18 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-11-22 18:49:27 +1300
commite0c2e50db6ad7d48407dd41fda0aa7bbd0eed646 (patch)
treed58c9f1a6cd0583253706815d26053a3a38dc16d /vim
parentMerge branch 'release/v1.72.0' into develop (diff)
downloaddotfiles-e0c2e50db6ad7d48407dd41fda0aa7bbd0eed646.tar.gz
dotfiles-e0c2e50db6ad7d48407dd41fda0aa7bbd0eed646.zip
Add hostconf Vim filetype detection for hosts(5)
Diffstat (limited to '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 541976f4..9e1773a0 100644
--- a/vim/filetype.vim
+++ b/vim/filetype.vim
@@ -186,6 +186,10 @@ augroup filetypedetect
\ ?*.html
\,?*.htm
\ setfiletype html
+ " hosts(5) file
+ autocmd BufNewFile,BufRead
+ \ /etc/hosts
+ \ setfiletype hostconf
" inittab(5) files
autocmd BufNewFile,BufRead
\ inittab