Ⅰ. 插件描述
C/C++ omni-completion with ctags databaseⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jabbourb/omnicpp'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jabbourb/omnicpp'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jabbourb/omnicpp'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jabbourb/omnicpp
Ⅳ. 文档说明
Note:
This project is dead. Bending the original code to fit my purposes
proved harder than expected, and I have started a full rewrite
instead (OmniCpp2).
This is my fork of the Vim OmniCpp plugin. Since the original code
doesn't seem maintained anymore, I decided to give it a go and try to
maintain my own fork.
- How to use it
Put the folders in ~/.vim, and that's it!
- Features so far
- Doc string extraction from header files (if present on system).
- Automatic reflow of text in preview window to adjust to window width.
- Configuration
Apart from the original OmniCpp configuration, the following variables
enable or disable features:
- g:OmniCpp_EnableDoc: set to enable the doc extraction feature.
- g:OmniCpp_DocReflow: set to enable the doc reflow in preview window.
- g:OmniCpp_DocLine: set to extract line comments (//) as well.