Ⅰ. 插件描述
Easily open the http://apidock.com/ page for tips from Vim. Inspried by open-rubygems.vim.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'xuwupeng2000/vim-rails-apidock'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'xuwupeng2000/vim-rails-apidock'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'xuwupeng2000/vim-rails-apidock'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/xuwupeng2000/vim-rails-apidock
Ⅳ. 文档说明
# railsdock.vim
Easily open the apidock page for tips from Vim.
Inspried by open-rubygems.vim. - Thank you Arvid Andersson.
Usage
Use :Api to open up apidock. If the cursor is located on a method name you can use :Api to open up the apidock page for that method.
Installation
Using pathogen.vim:
cd ~/.vim/bundle
# Install dependencies
git clone https://github.com/xolox/vim-shell.git
git clone https://github.com/xolox/vim-misc.git
# Install railsdock.vim
git clone https://github.com/xuwupeng2000/vim-rails-apidock.git
Using Vundle:
Bundle 'xuwupeng2000/vim-rails-apidock'
Otherwise just copy the contents of vim-apidock's plugin folder to ~/.vim/plugins/.
Requirements
Depends on vim-mis and vim-shell.
BTW: try them they are very useful.
Contributing
You are very welcome to contibute. Do a pull request or issue on github.
License
Copyright (c) Jack Wu. Distributed under the same terms as Vim itself.
See :help license.