8000 GitHub - karthikv/tradeship-vim: Vim plugin to run tradeship, which automatically imports JS dependencies and removes unused ones.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

karthikv/tradeship-vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tradeship for Vim

Vim plugin to run tradeship, which automatically imports missing JS dependencies and removes unused ones.

Installation

Ensure you have tradeship installed:

$ npm install -g tradeship
# or use yarn:
$ yarn global add tradeship

Install tradeship-vim with your favorite package manager. For vim-plug, add this to your ~/.vimrc:

Plug 'karthikv/tradeship-vim'

And then run :PlugInstall.

Usage

To run tradeship, you may either:

  • Execute :Tradeship

  • To run on save, add the following to your ~/.vimrc:

    autocmd BufWritePre *.js,*.jsx Tradeship
  • To run using a keyboard shortcut (e.g. ctrl + alt + i), add the following to your ~/.vimrc:

    nnoremap <C-A-i> :Tradeship<CR>

The first time tradeship runs in a project directory with many JavaScript files, it'll take some time to parse and cache dependencies. Future runs will be much faster.

License

MIT

About

Vim plugin to run tradeship, which automatically imports JS dependencies and removes unused ones.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0