ember_tools.vim : Tools for working with ember.js projects
script karma |
Rating 17/7,
Downloaded by 1691 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Andrew Radev |
|
script type |
utility |
|
description |
Github repo: https://github.com/AndrewRadev/ember_tools.vim
This plugin contains various tools to work with ember.js projects. After installing it, just editing files in an ember.js project should be enough to activate them. It's similar to (and inspired by) rails.vim (vimscript #1567).
The tools work both for javascript and coffeescript, and they support both the handlebars and emblem templating languages. For now, there are two tools available:
- An enhanced `gf` family of mappings (a custom include expression)
- An :Extract command that lets you extract some template code into a component.
- An :Unpack command that unpacks imported modules into local variables and an :Inline command that does the opposite
Read the documentation for more details.
It's recommended to also use the vim-projectionist (vimscript #4989) plugin for easier navigation through the project. Here's a sample json file you might use with it: https://gist.github.com/AndrewRadev/3524ee46bca8ab349329. It sets up the major file types you might want to navigate to, and it connects routes, controllers, and templates, so that the :A command jumps from route to controller, to template, and then back to the route.
|
|
install details |
There are several ways to install the plugin. The recommended one is by using Tim Pope's pathogen (vimscript #2332). In that case, you can clone the plugin's git repository like so:
git clone git://github.com/AndrewRadev/ember_tools.vim.git ~/.vim/bundle/ember_tools
If your vim configuration is under git version control, you could also set up the repository as a submodule, which would allow you to update more easily. The command is (provided you're in ~/.vim):
git submodule add git://github.com/AndrewRadev/ember_tools.vim.git bundle/ember_tools
Another way is to simply copy all the essential directories inside the ~/.vim directory: autoload, doc, plugin.
|
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.97.9.175
|