Hands on Backbone: vim and Ejmodel, Ejview, etc?

Hi, I notice @seangriffin types some EjHelpers while editing code: Ejmodel, Ejview, Ejcollection, etc.

How do I copy them into my vimrc? Are they based on tpope’s projectionist? I searched https://github.com/sgrif/vim-config but didn’t see how they were defined.

More generically, I’d welcome any hints on how to navigate backbone better… Ctrlp works OK, but I keep opening the wrong language (“dangit, a ruby model. I wanted js”).

Thanks!

Here you go. :slight_smile: https://github.com/sgrif/dotfiles/blob/master/vim/rails-projections

1 Like

@seangriffin Is there a way to generalize the Angular ones in that file that currently reference a single project?

Excellent! I never knew about those custom projection hooks.

Thanks Sean.