作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想知道 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/
我是一名优秀的程序员,十分优秀!