mutewinter / vim-import-js

Vim plugin for ImportJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vim support

ImportJS is meant to be used as a Pathogen plugin. Just git clone this repo into the bundles folder and you are good to go!

Dependencies

You need to have the import-js npm package installed to use this plugin.

npm install -g import-js

Speeding it up with Watchman

If you want an extra performance boost, you can install Watchman. See the ImportJS README for more information.

Default mappings

By default, ImportJS attempts to set up the following mappings:

Mapping Command Description
<Leader>j :ImportJSWord Import the module for the variable under the cursor.
<Leader>i :ImportJSFix Import any missing modules and remove any modules that are not used.
<Leader>g :ImportJSGoto Go to the module of the variable under the cursor.

About

Vim plugin for ImportJS

License:MIT License


Languages

Language:Vim Script 100.0%