Ⅰ. 插件描述
The script will traverse path tree and load ctag found on the way.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/ctagloader'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/ctagloader'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/ctagloader'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/ctagloader
Ⅳ. 文档说明
This script will automatically traverse your path tree from the current directory all the way to root and load tags files found along the way.
This is often useful when you have a root ctag file for your project and you often work in some subdirectories of your projects.
For example, if you have a project structured as follows:
foo/
bar/
baz/
There is a ctag file (often named as tags/TAGS) in foo/ and you constantly work in foo/bar/ or foo/baz/
Say you are now in foo/bar/. If you execute "vim hello_world.c", the ctag file in foo/ will be found and loaded.