vim-jquery-doc is a little plugin that helps you to look up jQuery API doc website more quickly.
If you want something similar for Ruby/Rspec/Rails see vim-ruby-doc.
I strongly recommend installing pathogen.vim.
cd ~/.vim/bundle git clone git://github.com/lucapette/vim-jquery-doc.git
Or you can unzip it in your
When your cursor is on a jQuery method, type
JJ (or your own mapping, see
settings for that) and the plugin will open a new tab in your browser (or a
new instance of the browser) to the related docs. That's all.
By default, the plugin uses the xdg-open command to look up the docs but you can easily change the command. For example, if you are on OSX you would like to change it to:
Furthermore you can choose your own mapping in the following way:
Furthermore, the plugin defines the following command to search on the command-line:
Moving mappings to filetype directory
Copyright (c) Luca Pette. Distributed under the same terms as Vim itself. See