Ⅰ. 插件描述
Vim CCTree pluginⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'hari-rangarajan/cctree'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'hari-rangarajan/cctree'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'hari-rangarajan/cctree'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/hari-rangarajan/cctree
Ⅳ. 文档说明
## About
This is a fork of http://www.vim.org/scripts/script.php?script_id=2368
Description:
Plugin generates symbol dependency tree (aka call tree, call graph) in real-time inside Vim. Basic support for functions and macros; global variables, enums, typedefs can be cross-reference with additional processing. Functionality similar to that of tools and IDE's like CBrowser, Kscope, Source navigator, Eclipse, Source Insight. Project details/Screenshots. Requires cscope to generate a cscope database; the complementary utility ccglue can be used to convert cscope databases to native cctree databases for instant loading.
Complementary tools
- ccglue Generate cross-reference cctree database files from cscope and/or ctags database files.
Features
- Symbol dependency tree analyzer for C using cscope database
- Basic support for functions, and macros
- Extended support for global variables, macros, enum members, typedefs, and also symbols cscope might not detect.
- Native Vim 7 plugin
- Supports using external tools, or perl interpreter to overcome VimScript memory limitations for loading large databases
- Leverages Vim features and Integrates into typical programming work-flow
- Dynamic syntax highlighting for real-time dependency tree flow (customizable)
- Cscope like default short-cuts (customizable)
- Folding support
- Preview/Tag loading
- Manipulate call-tree windows
- Save buffers
- Export to HTML with syntax highlighting (with +conceal)
- Serialization of cross-reference tables
- Similar to Vim's session feature, CCTree can save the built cross-references into a file for reloading any time later
- Can be complemented with native tools [ccglue] for faster cross-reference building in larger projects
Supported languages:
- C)
Requirements:
Vim installation
To use with vundle (recommended) simply add:
Plugin 'hari-rangarajan/CCTree' in your .vimrc