Ⅰ. 插件描述
Load the correct set of tags for the file you're editingⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/loadtags'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/loadtags'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/loadtags'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/loadtags
Ⅳ. 文档说明
When you open a file, it searches for tags files in all ancestor directories and loads them. This is useful when you work on several projects and have different set of tags for each of them.
Let's say that you open file /home/user/projects/my_proj/lib/hello.pm. Loadtags plugin looks for files
/home/user/projects/my_proj/lib/tags,
/home/user/projects/my_proj/tags,
/home/user/projects/tags,
/home/user/tags,
/home/tags,
/tags
and calls setlocal tags+= on those that exist.