[英]Iterate through taglist in vim
According to taglist definition , the function returns a list of matches.根据taglist 定义, function 返回匹配列表。
When I perform something like :call taglist($func_name)
in vim, it takes me to the first match, presumably.当我在 vim 中执行类似:call taglist($func_name)
的操作时,大概会带我参加第一场比赛。
Is there a command that would open the next match and so on?是否有命令可以打开下一场比赛等等? Or is it needed to write a function for such thing?或者是否需要为这样的事情写一个 function ?
presumably想必
I'm not sure where you got that from.我不确定你从哪里得到的。 :help taglist()
is a function that returns a list without any side-effect so :call taglist()
is certainly not going to take you to any match. :help taglist()
是一个 function ,它返回一个没有任何副作用的列表,所以:call taglist()
肯定不会带你去任何匹配。
Is there a command that would open the next match and so on?是否有命令可以打开下一场比赛等等? Or is it needed to write a function for such thing?或者是否需要为这样的事情写一个 function ?
You are looking at the wrong section of the documentation.您正在查看文档的错误部分。 The right one is :help tag-matchlist
, where you can read about :help:tselect
, :help:tnext
, etc.正确的是:help tag-matchlist
,您可以在其中阅读:help:tselect
、 :help:tnext
等信息。
The topic is introduced in chapter 29 of :help user-manual
, which you shouldn't have skipped .该主题在:help user-manual
的第 29 章中介绍,您不应该跳过它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.