A Vim plugin for support JavaScript code development based on AST analysis.
Use your preferred installation method.
Bundle 'nkzawa/js-inspector.vim'
cd ~/.vim/bundle
git clone git://github.com/nkzawa/js-inspector.vim.git
- Node.js v0.10 or later
Make sure the node
command is in your PATH
.
Add the following to your ~/.vimrc
to enable default key mappings .
call jsinspector#keymaps()
Then open a JavaScript file:
- Press
<LocalLeader>*
or<LocalLeader>#
to search the variable nearest to the cursor. - Press
n
orN
to repeat searching. - Enter Insert mode and edit the variale to rename.
- Run
:JsInspectorSearchClear
to stop highlighting for search.
MIT