Created
October 4, 2011 20:34
-
-
Save logankoester/1262714 to your computer and use it in GitHub Desktop.
Useful Rails.vim macros
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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