Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Example Rails.vim projections for an Ember.js project.
"app/assets/javascripts/models/*.coffee": {
"command": "jmodel",
"alternate": "spec/javascripts/models/",
"template": "App.%S = DS.Model.extend"
"app/assets/javascripts/controllers/*": {
"command": "jcontroller",
"alternate": "spec/javascripts/controllers/",
"template": "App.%SController = Ember.ObjectController.extend"
"app/assets/javascripts/views/*": {
"command": "jview",
"alternate": "spec/javascripts/views/",
"related": "app/assets/javascripts/templates/%s.hbs",
"template": "%SView = Ember.View.extend"
"app/assets/javascripts/": {
"command": "jrouter"
"app/assets/javascripts/routes/*": {
"command": "jroute",
"alternate": "spec/javascripts/routes/",
"template": "App.%SRoute = Ember.Route.extend"
"spec/javascripts/*": {
"command": "jspec",
"alternate": "app/assets/javascripts/"
"app/assets/javascripts/templates/*.hbs": {
"command": "template",
"alternate": "app/assets/javascripts/views/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.