forked from rafi/vim-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
filetype.vim
26 lines (18 loc) · 867 Bytes
/
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
" File-type Detection
" ------------------------------------------------
if exists('did_load_filetypes')
finish
endif
augroup filetypedetect
autocmd BufNewFile,BufRead */inventory/*.{yml,yaml} setfiletype ansible
autocmd BufNewFile,BufRead */inventories/*.{yml,yaml} setfiletype ansible
autocmd BufNewFile,BufRead */playbooks/*.{yml,yaml} setfiletype ansible
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
augroup END
" vim: set ts=2 sw=2 tw=80 noet :