9

Ctrl + ] 是跳转到定义。Ctrl + T 是返回。Ctrl + T 的反义词是什么?

4

2 回答 2

8
:help tag-stack


:[count]po[p][!]        Jump to [count] older entry in tag stack (default 1). 
                        See |tag-!| for [!].  {not in Vi}                     

:[count]ta[g][!]        Jump to [count] newer entry in tag stack (default 1). 
                        See |tag-!| for [!].  {not in Vi}                     

您还可以使用ctrl + ictrl + o分别通过跳转列表向前和向后移动。这适用于标签命令,因为它们算作跳跃动作。

所以:跳转到一个标签ctrl + ]

跳回来:ctr + o

再次跳转到标签ctrl + i

:help jump-motions

于 2010-05-25T16:06:02.790 回答
6

:tag命令会将您移到标签堆栈中。它没有绑定到组合键,但您可以自己将其映射到 .vimrc 文件中。

于 2010-05-25T07:27:32.570 回答