2019-11-16 12:43:18 -05:00
|
|
|
" 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')
|
|
|
|
|
|
|
|
" 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')
|
|
|
|
|
2020-01-28 21:07:36 -05:00
|
|
|
" Sorbet RBI files
|
|
|
|
au BufNewFile,BufRead *.rbi call s:setf('ruby')
|
|
|
|
|
2019-11-16 12:43:18 -05:00
|
|
|
" 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:
|