第十七章 个人渣翻译 spf13插件---Tagbar(ctags) 使用教程

本文介绍了Tagbar插件在Vim中的使用,结合exuberant-ctags进行代码标签导航。Tagbar通过创建侧边栏展示文件结构,提供快速跳转功能。在Ubuntu 16.04上,由于缺少ctags,Tagbar无法工作。解决方法是安装ctags并重新安装spf13-vim。虽然Tagbar自带的快捷键不够直观,但通过映射自定义键位,可以实现高效的代码浏览和跳转,提升编程效率。
摘要由CSDN通过智能技术生成

看看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

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值