ember_tools.vim : Tools for working with ember.js projects
| script karma
Downloaded by 1154
Comments, bugs, improvements
script versions (upload new version)
|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).
- 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.
|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.
Click on the package to download.
ip used for rating: 22.214.171.124