ember-cli VIM projections
This is a small projections.vim file for for ember-cli.
It's designed for use with Tim Popes projectile.vim—a general purpose plugin, based on the beloved rails.vim. If you use
rails.vim, this will make you feel right at home with ember-cli.
You'll need to it Install projectile.vim to start using these projectins in your ember project.
Once projectile is installed, simply add this
.projections.json file to the root of your ember application. You can also add it to your your
.vimrc file—with a little tinkering.
Now you have access to commands like
Erouter, to edit
Ehelper reverse-word to edit
In addition to
E (edit), you can use the
T (tabedit) and
V (vsplit) prefixes when editing a file.
Creating a File
You can create a file with any command by passing in a file path that does not exist and pressing
return. You will get a new buffer with ES6 Module boilerplate for the specified type. For example: if
app/components/my-calendar does not exist, executing
Ecomponent my-calander will give you a new component with ember-component with in ES6 Module-style syntax.
- Add 'alternate' definitions
So if we were to add this to our vimrc, what would we name it?
let g:ember_projections? Also could this file go into ftplugin or ftdetect folder?