All Projects → Galooshi → Vim Import Js

Galooshi / Vim Import Js

Licence: mit
Vim plugin for ImportJS

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vim Import Js

Sqhell.vim
An SQL wrapper for vim
Stars: ✭ 113 (-24.67%)
Mutual labels:  vim-plugin
Vim Clap
👏 Modern performant fuzzy picker for Vim and NeoVim
Stars: ✭ 1,802 (+1101.33%)
Mutual labels:  vim-plugin
Devdocs.vim
Open devdocs.io from Vim
Stars: ✭ 137 (-8.67%)
Mutual labels:  vim-plugin
Incsearch Fuzzy.vim
Stars: ✭ 116 (-22.67%)
Mutual labels:  vim-plugin
Vim Todo Lists
Vim plugin for TODO lists
Stars: ✭ 126 (-16%)
Mutual labels:  vim-plugin
Diffchar.vim
Highlight the exact differences, based on characters and words
Stars: ✭ 132 (-12%)
Mutual labels:  vim-plugin
Vim Ros
Vim plugin for ROS development
Stars: ✭ 106 (-29.33%)
Mutual labels:  vim-plugin
Iris.vim
📫 Simple mail client for Vim.
Stars: ✭ 148 (-1.33%)
Mutual labels:  vim-plugin
Quickfixsigns vim
Mark quickfix & location list items with signs
Stars: ✭ 126 (-16%)
Mutual labels:  vim-plugin
Vim Bujo
A minimalist task manager for vim.
Stars: ✭ 136 (-9.33%)
Mutual labels:  vim-plugin
Vim Youdao Translater
vim的有道取词翻译插件
Stars: ✭ 116 (-22.67%)
Mutual labels:  vim-plugin
Vim Operator Surround
Vim operator mapping to enclose text objects with surrounds like paren, quote and so on.
Stars: ✭ 124 (-17.33%)
Mutual labels:  vim-plugin
Ale
Check syntax in Vim asynchronously and fix files, with Language Server Protocol (LSP) support
Stars: ✭ 11,380 (+7486.67%)
Mutual labels:  vim-plugin
Nvim Treesitter Context
Show code context
Stars: ✭ 113 (-24.67%)
Mutual labels:  vim-plugin
Vim Better Default
🎨 Simplify your .vimrc and make the default vim better
Stars: ✭ 138 (-8%)
Mutual labels:  vim-plugin
Vim Trex
Running T-Rex with Vim
Stars: ✭ 111 (-26%)
Mutual labels:  vim-plugin
Vem Tabline
A lightweight Vim/Neovim plugin to display buffers and tabs in the tabline
Stars: ✭ 129 (-14%)
Mutual labels:  vim-plugin
Nerdtree Git Plugin
A plugin of NERDTree showing git status
Stars: ✭ 1,945 (+1196.67%)
Mutual labels:  vim-plugin
Tlib vim
Some utility functions for VIM
Stars: ✭ 147 (-2%)
Mutual labels:  vim-plugin
Syntastic
Syntax checking hacks for vim
Stars: ✭ 11,044 (+7262.67%)
Mutual labels:  vim-plugin

ImportJS helps you import JavaScript dependencies. Hit a keyboard shortcut to automatically add import x from 'y' statements at the top of the file.

Demo of ImportJS in action

Installation

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!

git clone [email protected]:Galooshi/vim-import-js.git ~/.vim/bundle/vim-import-js

Dependencies

ImportJS works in Vim (version 8 and later) and Neovim.

You need import-js installed globally to use this plugin.

npm install -g import-js

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.

Configuration

For import-js configuration see https://github.com/Galooshi/import-js#configuration

Troubleshooting

If you run into issues when using the plugin, adding some logging can help. After starting up vim, and before you've imported anything, run this command:

:call ch_logfile('channel_log.txt', 'w')

After this, you should get useful information in channel_log.txt.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].