Ⅰ. 插件描述
CtrlP FileType chooser pluginⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'naquad/ctrlp-filetype-looking-forward'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'naquad/ctrlp-filetype-looking-forward'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'naquad/ctrlp-filetype-looking-forward'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/naquad/ctrlp-filetype
Ⅳ. 文档说明
# CtrlP FileType
CtrlP extension for fuzzy-searching available file types.
Prerequisites
CtrlP should be installed
Usage
Plugin provides CtrlPFileType command which will
pop up a list of available file types.
Types are gathered from syntax files names.
That is plugin will look through all runtime pathes (&rtp)
looking for files matching /syntax/*.vim pattern.
To add own file types in your .vimrc you can do
let g:ctrlp_filetypes = {}
let g:ctrlp_filetypes['filetype'] = 'optional description'
" e.g
let g:ctrlp_filetypes['cpp'] = 'C++ source file'
let g:ctrlp_filetypes['eruby'] = 'Embedded Ruby'
let g:ctrlp_filetypes['conf'] = 'Configuration file'