如何在Vim中导航多个ctags匹配? [英] How to navigate multiple ctags matches in Vim?
本文介绍了如何在Vim中导航多个ctags匹配?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Vim中使用 Ctrl -] 来使用Ctags进行导航. 如果存在多个匹配项,如何导航到备用文件?
I'm using Ctrl-] in Vim to navigate using Ctags. How do I navigate to alternate file if there are multiple matches?
例如包含多次出现的publish
的代码库中的something.publish
:
Ex. something.publish
in a codebase containing multiple occurrences of publish
:
class Foo
def publish
end
end
class Bar
def publish
end
end
推荐答案
:tn[ext]
转到下一个标记,:tp[revious]
转到上一个标记. :ts[elect]
为您提供了可供选择的列表.
:tn[ext]
goes to the next tag, :tp[revious]
goes to the previous one. :ts[elect]
gives you a list to choose from.
:help tag-matchlist
尝试更多有趣和刺激的事情!
:help tag-matchlist
for more fun and exciting things to try!
这篇关于如何在Vim中导航多个ctags匹配?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文