linux - 如何跳转到taglist中的方法

标签 linux vim ide

我正在使用带有 taglist 插件的 vim。但是每次打开taglist时,它都会显示字段和方法。但我不关心这个类中的字段,我只想选择一个方法并跳转到它。使用/method之类的搜索其实可以解决这个问题。但我认为必须有更好的解决方案。
谢谢

最佳答案

直接从文档编辑 ( taglist.txt ):

For example, to list only the classes and functions defined in a C++ language file, add the following line to your .vimrc file:

 let tlist_cpp_settings = 'c++;c:class;f:function'

这配置 taglist 将某些选项传递给 ctags,例如

ctags --c++-kinds=+p --fields=+iaS --extra=+q

您可以--list-kinds 找出您想要包括的种类。

关于linux - 如何跳转到taglist中的方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8236126/

相关文章:

c++ - MS Visual Studio 到 Linux - 在 VirtualBox 中编译和调试

c - 使用 inotify 检测外部 IN_MOVED_FROM 重命名

python - 如何使用 Python 从终端使用默认 Web 浏览器打开 url?

vim - 如何在 vim 中映射 <c-leader>?

node.js - 哪个 IDE 支持 Node.js 应用程序的 CoffeeScript 调试(源映射、断点和调用堆栈)?

php - 对创建的每个文件夹设置 777 权限

plugins - Vim:用我自己的表达式包装插件映射

linux - VIM 中 python 代码窗口关闭后自动关闭 pylint 窗口

javascript - Aptana 替代方案

python - 具有自动完成功能的免费 Python 编程环境