Ⅰ. 插件描述
include head file use ctrlpⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'zhaohuaxishi/ctrlp-header'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'zhaohuaxishi/ctrlp-header'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'zhaohuaxishi/ctrlp-header'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/zhaohuaxishi/ctrlp-header
Ⅳ. 文档说明
# ctrlp-header
Use ctrlp.vim to include C/CPP standard header
Its not very powerful now, I just get standard header from
Demo
cpp

c

Requirement
Usage
CtrlPHeader command
you can use CtrlPHeader command to include normal stype header like this:
#include <string>CtrlPEHeader command
you can use CtrlPEHeader command to include normal header with extren "C"
guard like this:
extern "C" { #include <libswscale/swscale.h> }you can map this two command to some short cut like this
nnoremap <silent> <Leader>i :CtrlPHeader<CR>TODO LIST
[ ] add the support of include header at certain line
[ ] cache
[ ] semantic map of type and headers