Skip to content

Instantly share code, notes, and snippets.

@logankoester
Created October 4, 2011 20:34
Show Gist options
  • Save logankoester/1262714 to your computer and use it in GitHub Desktop.
Save logankoester/1262714 to your computer and use it in GitHub Desktop.
Useful Rails.vim macros
" Factories and Configuration
Rnavcommand config config -suffix=.yml -default=application
Rnavcommand factory spec/factories test/factories -suffix=.rb -default=model()
" Backbone
Rnavcommand bmodel app/assets/javascripts/backbone/models -suffix=.coffee -default=model()
Rnavcommand bview app/assets/javascripts/backbone/views -suffix=.coffee
" Apotomo Widgets (Cells)
Rnavcommand widget app/widgets -suffix=_widget.rb
" Uploaders
Rnavcommand uploader app/uploaders -suffix=_uploader.rb
" Resque jobs
Rnavcommand job app/jobs -suffix=.rb
" Compass
Rnavcommand stylesheet app/assets/stylesheets -suffix=.sass -default=screen.css
" Routes
Rnavcommand outes app/config/routes.rb
" Jasmine
Rnavcommand jasmine spec/javascripts/ -default=support/jasmine.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment