Skip to content

Instantly share code, notes, and snippets.

@foca
Created August 10, 2012 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foca/3316523 to your computer and use it in GitHub Desktop.
Save foca/3316523 to your computer and use it in GitHub Desktop.
Per project .vimrc files. See http://coderwall.com/p/tqns-w
autocmd User Rails Rnavcommand form app/forms -glob=**/* -suffix=_form.rb
autocmd User Rails Rnavcommand service app/services -glob=**/*.rb -suffix=_service.rb
autocmd User Rails Rnavcommand uploader app/uploaders -glob=**/*.rb -suffix=_uploader.rb
autocmd User Rails Rnavcommand config config -glob=**/* -suffix=.rb
autocmd User Rails Rnavcommand factories -default=test/support/factories -suffix=.rb
autocmd FileType ruby,eruby,javascript,html set shiftwidth=2 softtabstop=2 expandtab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment