Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.15 KB

README.md

File metadata and controls

48 lines (31 loc) · 1.15 KB

js-inspector.vim

Build Status

A Vim plugin for support JavaScript code development based on AST analysis.

screenshot

Installation

Use your preferred installation method.

Bundle 'nkzawa/js-inspector.vim'
cd ~/.vim/bundle
git clone git://github.com/nkzawa/js-inspector.vim.git

Dependencies

Make sure the node command is in your PATH.

Basic Usage

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 or N to repeat searching.
  • Enter Insert mode and edit the variale to rename.
  • Run :JsInspectorSearchClear to stop highlighting for search.

License

MIT