gpt4 book ai didi

Vim 标签列表 : How to jump to a tag definition from within an open source file

转载 作者:行者123 更新时间:2023-12-04 14:35:00 25 4
gpt4 key购买 nike

我想知道 Vim 是什么 Taglist如果我不能从开源文件中跳转到标签定义,这很有用。为了能够使用 Ctrl+],我是否必须通过运行例如 ctags *.f90 来生成单独的标签文件?

最佳答案

是的,你需要一个 tags 数据库(通常通过运行 ctags 或等效的外部工具创建)来使用 Vim 的标签跳转/搜索功能。

由于 Vim 是通用文本编辑器,它不具备任何有关个别语言的知识,而是将其委托(delegate)给外部资源(本着 Unix 的 做好一件事 的真正精神) .

PS: 有像 easytags.vim 这样的插件自动生成和更新标签的过程。

关于Vim 标签列表 : How to jump to a tag definition from within an open source file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13720344/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com