aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-05-21 15:31:20 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-05-21 15:31:20 +1200
commitaf895a3763842036d36f183334d9b47497117f6e (patch)
tree8dcf93602de556fe86440f84970d177704e1f94e
parentMerge branch 'hotfix/v9.9.2' (diff)
downloaddotfiles-af895a3763842036d36f183334d9b47497117f6e.tar.gz
dotfiles-af895a3763842036d36f183334d9b47497117f6e.zip
Add printcap filetype detection in 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 91327ba0..70c57682 100644
--- a/vim/filetype.vim
+++ b/vim/filetype.vim
@@ -290,6 +290,10 @@ augroup filetypedetect
autocmd BufNewFile,BufRead
\ protocols
\ setfiletype protocols
+ " printcap(5) files
+ autocmd BufNewFile,BufRead
+ \ printcap
+ \ setfiletype ptcap
" Python files
autocmd BufNewFile,BufRead
\ ?*.py