forked from rafi/vim-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfiletype.vim
31 lines (21 loc) · 1.07 KB
/
filetype.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
" File-type Detection
" ------------------------------------------------
if exists('did_load_filetypes')
finish
endif
augroup filetypedetect
autocmd BufNewFile,BufRead */inventory/*.{yml,yaml} setfiletype yaml.ansible
autocmd BufNewFile,BufRead */inventories/*.{yml,yaml} setfiletype yaml.ansible
autocmd BufNewFile,BufRead */playbooks/*.{yml,yaml} setfiletype yaml.ansible
autocmd BufRead,BufNewFile */.kube/config set filetype=yaml
autocmd BufRead,BufNewFile */templates/*.yaml,*/templates/*.tpl set filetype=yaml.gotexttmpl
autocmd BufNewFile,BufRead .tern-project setfiletype json
autocmd BufNewFile,BufRead .jsbeautifyrc setfiletype json
autocmd BufNewFile,BufRead .eslintrc setfiletype json
autocmd BufNewFile,BufRead .jscsrc setfiletype json
autocmd BufNewFile,BufReadPost *.{feature,story} setfiletype cucumber
autocmd BufNewFile,BufRead Jenkinsfile setfiletype groovy
autocmd BufNewFile,BufRead Tmuxfile,tmux/config setfiletype tmux
"autocmd BufNewFile,BufReadPost *.mmd setfiletype markdown
augroup END
" vim: set ts=2 sw=2 tw=80 noet :