Ⅰ. 插件描述
a ctrlp.vim extension - pick out from docsetⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'tokorom/ctrlp-docset'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'tokorom/ctrlp-docset'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'tokorom/ctrlp-docset'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/tokorom/ctrlp-docset
Ⅳ. 文档说明
ctrlp-docset
a ctrlp.vim extension - pick out from docset
INTRO
Docset finder with an intuitive interface.
This is extension plugin for CtrlP
INSTALL
- .vimrc
# If you use Vundle
Bundle 'git://github.com/kien/ctrlp.vim.git'
Bundle 'git://github.com/tokorom/ctrlp-docset.git'USAGE
:CtrlPDocsetOPTIONS
Set the docsetutil command:
let g:ctrlp_docset_docsetutil_command = '/Applications/Xcode.app/Contents/Developer/usr/bin/docsetutil'Set the docset filepath each filetype:
let g:ctrlp_docset_filepaths = {'objc': '~/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.AppleiOS6.1.iOSLibrary.docset'}Set the command for opening the selected file:
# Default
let g:ctrlp_docset_accept_command = ':!open "file://%s"'
# If you would like to use w3m.vim
let g:ctrlp_docset_accept_command = ':W3mSplit local %s'