Ⅰ. 插件描述
Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'luchermitte/clang-indexer-is-written-on'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'luchermitte/clang-indexer-is-written-on'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'luchermitte/clang-indexer-is-written-on'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/luchermitte/clang_indexer
Ⅳ. 文档说明
CLIC: Clang Indexer for C/C++
This is an indexer for C and C++ based on the libclang library.
There are several parts to it:
- The clic_add, clic_rm, clic_clear utilities for updating a database of symbols
- The clic_update.sh bash script, which runs the aformentioned utilities as required when the
sources change - A Vim plugin, hosted at https://github.com/exclipy/clang_complete, which let's the user query the
database for references to the symbol under the cursor in Vim.
For further instructions, please consult this blog post:
http://blog.wuwon.id.au/2011/10/vim-plugin-for-navigating-c-with.html
Please note that this is an early stage of a little project that I've been doing just to make my own
life easier. It has very sharp edges and I haven't really invested much effort in making it easy to
- Use at your own peril, it will destroy your code, format your hard drive, eat your children,
etc.