How to go back to lines edited before the last one in Vim?

后端 未结 2 1505
难免孤独
难免孤独 2020-12-04 04:44

I\'m aware of the `. command that goes to last edited line. Is there a way to go further in the editing history? I often accidentally insert something while bro

相关标签:
2条回答
  • I use CTRL-O and CTRL-I to jump back and forth between recent points in files. It also goes through certain motion commands, but I find it usually takes me back to where I was editing.

    0 讨论(0)
  • 2020-12-04 05:32

    Try g ; and g ,. They jump backward and forward in the changelist.

    See :help changelist for more details.

    0 讨论(0)
提交回复
热议问题