Jumping back to a previously opened file in Vim

后端 未结 4 1243
予麋鹿
予麋鹿 2021-02-18 17:34

While using Vim I\'ll sometimes want to look at a function definition or a struct definition, so I\'ll use C-] to jump to it. However, there are a few problems I ru

4条回答
  •  悲哀的现实
    2021-02-18 17:50

    To jump back from C-], use C-T. The :tags command shows the current stack.

    Set the autowrite option to automatically save what you're doing before jumping to a new file.

    Use C-W C-] to open the tag in a new window.

    Finally, :help tags is the section in help that explains all this and more.

提交回复
热议问题