看看Tagbar介绍:
spf13-vim includes the Tagbar plugin. This plugin requires exuberant-ctags and will automatically generate tags for your open files. It also provides a panel to navigate easily via tags
QuickStartCTRL-]
while the cursor is on a keyword (such as a function name) to jump to its definition.
Customizations: spf13-vim binds<Leader>tt
to toggle the tagbar panel
渣翻译:
spf13集合包内置了Tagbar 插件。这个插件需要 exuberant-ctags 然后对于你打开的文件会自动生成索引。
它也提供了一个容易操纵索引的面板。
快速启动 当光标停留在某个关键字上(比如函数名),ctrl+] 会跳转到其定义。
自定义: spf13 捆绑了<leader>tt来切换tagbar 面板。
Tagbar is a Vim plugin that provides an easy way to browse the tags of the current file and get an overview of its structure. It does this by creating a sidebar that displays the ctags-generated tags of the current file, ordered by their scope. This means that for example methods in C++ are displayed under the class they are defined in.
Tagbar is not a general-purpose tool for managingtags
files. It only creates the tags it needs on-the-fly in-memory without creating any files.tags
file management is provided by other plugins, like for