sponsor Vim development Vim logo Vim Book Ad

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.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
ember_tools.zip 0.1.0 2016-08-23 7.0 Andrew Radev - :Unpack and :Inline commands
- More patterns supported by gf
- Pod structure (hopefully) supported by gf
- Various bugfxes and minor improvements
ember_tools.zip 0.0.1 2016-06-03 7.3 Andrew Radev Initial upload
ip used for rating: 18.97.9.175

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github