Skip to content

Instantly share code, notes, and snippets.

@mwoods79
Created December 7, 2012 22:05
Show Gist options
  • Save mwoods79/4236895 to your computer and use it in GitHub Desktop.
Save mwoods79/4236895 to your computer and use it in GitHub Desktop.
Some bindings for backbone in rails.vim
" Set up some useful Rails.vim bindings for working with Backbone.js
autocmd User Rails Rnavcommand template app/assets/javascripts/backbone/templates -glob=**/* -suffix=.jst.ejs
autocmd User Rails Rnavcommand jmodel app/assets/javascripts/backbone/models -glob=**/* -suffix=.coffee
autocmd User Rails Rnavcommand jview app/assets/javascripts/backbone/views -glob=**/* -suffix=.coffee
autocmd User Rails Rnavcommand jcollection app/assets/javascripts/backbone/collections -glob=**/* -suffix=.coffee
autocmd User Rails Rnavcommand jrouter app/assets/javascripts/backbone/routers -glob=**/* -suffix=.coffee
autocmd User Rails Rnavcommand jspec spec/javascripts -glob=**/* -suffix=.coffee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment