vim-jquery-doc


Ⅰ. 插件描述

Browse jQuery API doc quickly with Vim

Ⅱ. 基本信息

创建日期:  2012-01-28
使用用户:  14
Github星:  16
插件作者:  lucapette

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'lucapette/vim-jquery-doc'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'lucapette/vim-jquery-doc'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'lucapette/vim-jquery-doc'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/lucapette/vim-jquery-doc

Ⅳ. 文档说明

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.

Installation

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 ~/.vim directory.

How to use it

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.

Configure it

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:

let g:jquery_doc_command='open'

Furthermore you can choose your own mapping in the following way:

let g:jquery_doc_mapping='KK'

Furthermore, the plugin defines the following command to search on the
command-line:

  • JQueryDoc

Contributors

Moving mappings to filetype directory

License

Copyright (c) Luca Pette. Distributed under the same terms as Vim itself. See :help license.

添加新评论