VIM标签搜索和导航如何前进?

发布于 09-03 04:56 字数 54 浏览 7 评论 0原文

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

Ctrl + ] is to jump to the definition. Ctrl + T is to go back. What's the opposite of Ctrl + T?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

杯别2024-09-10 04:56:59
: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-动议

: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}                     

You can also use ctrl + i and ctrl + o to move forwards and backwards respectively through the jump list. This works with tag commands since they count as jump movements.

So: jump to a tag ctrl + ]

jump back: ctr + o

jump to tag again ctrl + i

:help jump-motions

执妄2024-09-10 04:56:59

:tag 命令将使您在标签堆栈中向下移动。它不绑定到组合键,但您可以自己将其映射到 .vimrc 文件中。

The :tag command will move you down the tag stack. It is not bound to a key combination, but you could map it yourself in your .vimrc file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文