← Back to Upcase

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


(Scott) #1

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!


(Sean Griffin) #2

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


(Dan Croak) #3

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


(Scott) #4

Excellent! I never knew about those custom projection hooks.

Thanks Sean.