Skip to content

Instantly share code, notes, and snippets.

@tylerhunt
Created December 15, 2010 14:44
Show Gist options
  • Save tylerhunt/742016 to your computer and use it in GitHub Desktop.
Save tylerhunt/742016 to your computer and use it in GitHub Desktop.
" Vim filetype detection file
" Language: Ruby
" Maintainer: Tyler Hunt <tyler@tylerhunt.com>
" Version: 1
" Last Change: 2010 May 26
"
augroup ruby
" Ruby metafiles
au! BufRead,BufNewFile Gemfile setfiletype ruby
au! BufRead,BufNewFile config.ru setfiletype ruby
au! BufRead,BufNewFile .autotest setfiletype ruby
" Rails templates
au! BufRead,BufNewFile *.erb setfiletype eruby
au! BufRead,BufNewFile *.js.erb setfiletype javascript
au! BufRead,BufNewFile *.pdf.prawn setfiletype ruby
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment