mirror of
https://github.com/amix/vimrc
synced 2024-12-29 21:33:06 +00:00
72 lines
1.6 KiB
VimL
72 lines
1.6 KiB
VimL
" All other filetypes
|
|
|
|
" Support functions {{{
|
|
function! s:setf(filetype) abort
|
|
if &filetype !=# a:filetype
|
|
let &filetype = a:filetype
|
|
endif
|
|
endfunction
|
|
" }}}
|
|
|
|
" Appraisal
|
|
au BufNewFile,BufRead Appraisals call s:setf('ruby')
|
|
|
|
" Autotest
|
|
au BufNewFile,BufRead .autotest call s:setf('ruby')
|
|
|
|
" Axlsx
|
|
au BufNewFile,BufRead *.axlsx call s:setf('ruby')
|
|
|
|
" Buildr Buildfile
|
|
au BufNewFile,BufRead [Bb]uildfile call s:setf('ruby')
|
|
|
|
" Capistrano
|
|
au BufNewFile,BufRead Capfile,*.cap call s:setf('ruby')
|
|
|
|
" Chef
|
|
au BufNewFile,BufRead Cheffile call s:setf('ruby')
|
|
au BufNewFile,BufRead Berksfile call s:setf('ruby')
|
|
|
|
" CocoaPods
|
|
au BufNewFile,BufRead Podfile,*.podspec call s:setf('ruby')
|
|
|
|
" Guard
|
|
au BufNewFile,BufRead Guardfile,.Guardfile call s:setf('ruby')
|
|
|
|
" Jb
|
|
au BufNewFile,BufRead *.jb call s:setf('ruby')
|
|
|
|
" Jbuilder
|
|
au BufNewFile,BufRead *.jbuilder call s:setf('ruby')
|
|
|
|
" Kitchen Sink
|
|
au BufNewFile,BufRead KitchenSink call s:setf('ruby')
|
|
|
|
" Opal
|
|
au BufNewFile,BufRead *.opal call s:setf('ruby')
|
|
|
|
" Pry config
|
|
au BufNewFile,BufRead .pryrc call s:setf('ruby')
|
|
|
|
" Puppet librarian
|
|
au BufNewFile,BufRead Puppetfile call s:setf('ruby')
|
|
|
|
" Rabl
|
|
au BufNewFile,BufRead *.rabl call s:setf('ruby')
|
|
|
|
" Routefile
|
|
au BufNewFile,BufRead [rR]outefile call s:setf('ruby')
|
|
|
|
" SimpleCov
|
|
au BufNewFile,BufRead .simplecov call s:setf('ruby')
|
|
|
|
" Sorbet RBI files
|
|
au BufNewFile,BufRead *.rbi call s:setf('ruby')
|
|
|
|
" Thor
|
|
au BufNewFile,BufRead [tT]horfile,*.thor call s:setf('ruby')
|
|
|
|
" Vagrant
|
|
au BufNewFile,BufRead [vV]agrantfile call s:setf('ruby')
|
|
|
|
" vim: nowrap sw=2 sts=2 ts=8 noet fdm=marker:
|