我正在使用带有 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/