Jumping back to a previously opened file in Vim

后端 未结 4 1250
予麋鹿
予麋鹿 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 18:10

    Another useful feature that comes handy is the uppercase marks. These marks are not local to a buffer and can be used to jump to them from across files. If you mark the line as say "A" using mA command before starting a long and arduous jumping around task, you can finally return back to the original position quickly by typing 'A or `A.

提交回复
热议问题