Ⅰ. 插件描述
ctags_cache is a vim plugin which can generate tags for C language uses ctags, then cache the tags in memory.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'abadcafe/ctags-cache'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'abadcafe/ctags-cache'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'abadcafe/ctags-cache'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/abadcafe/ctags_cache
Ⅳ. 文档说明
project on github.com: https://github.com/abadcafe/ctags_cache
ctags_cache is a vim plugin which can generate tags for C language uses ctags, then cache the tags in memory.
Thus, you don't need any tags file!
The plugin will update the cache while you call the :w command. Moreover, the header files which include by you current editing file will send to ctags too. Because ctags parse local variables not very good, so the plugin do the works itself(use regular expression.), it can extract local variables and function arguments exactly.
It is excellent, isn't it? The story is not end, thanks to python, the plugin uses threads so you almost can not feel the delay caused by parsing files when you coding!
Command
:SetIncludeList path-of-include-dir1 path-of-include-dir2 ...
:SetIncludeList
the command with no arguments sets no Include dir, thus only header files in the dir of current file will be parsed.
Todo
The plugin is not test in windows, I guess it can work.