Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (21 sloc) 729 Bytes
au BufRead,BufNewFile /usr/local/nginx/conf/* setlocal ft=nginx
au BufRead,BufNewFile *.coffee setlocal ft=coffee
au BufRead,BufNewFile *.stpl setlocal ft=smarty
au BufRead,BufNewFile *.json setlocal ft=json
au BufRead,BufNewFile Gemfile setlocal ft=Gemfile syn=ruby
au BufRead,BufNewFile config.ru setlocal ft=ruby
" au BufRead,BufNewFile *.js setlocal ft=javascript syn=jquery
" function! RubyOrRails()
" let exp = "%:p:h"
" let dir = expand(exp)
" while dir != '/'
" if filereadable(dir . "/db/schema.rb")
" setlocal ft=ruby.rails
" return
" endif
" let exp = exp . ':h'
" let dir = expand(exp)
" endwhile
" setlocal ft=ruby
" endfunction
" au BufRead,BufNewFile *.rb call RubyOrRails()
Something went wrong with that request. Please try again.