Tern for Vim
TernDef: Jump to the definition of the thing under the cursor.
TernDoc: Look up the documentation of something.
TernType: Find the type of the thing under the cursor.
TernRefs: Show all references to the variable or property under the
TernRename: Rename the variable under the cursor.
If you use Pathogen or something similar, you can clone this
repository to your
~/.vim/bundle (or equivalent) directory. Make
sure you have node.js and npm installed (Tern is a
npm install in the
Caution: Because the node process is not run using your standard shell, the NVM version of node.js won't work. You need a global node executable.
The command used to start the Tern server can be overridden by setting
tern#command to an array of strings (the binary and its arguments,
if any). You might need this if your node is installed somewhere
that's not in the default path, or if you want to install Tern in some
tern#is_show_argument_hints_enabled can be set to
something truthy to make the plugin display the arguments to the
current function at the bottom of the screen. This feature is
currently not very mature, and likely to make your editing laggy.
.tern-project files to configure loading libraries and
plugins for a project. See the Tern docs for details.