How to undo all changes in a buffer made since it was open in Vim?

后端 未结 7 752
执念已碎
执念已碎 2021-01-30 08:38

How can I undo all changes since opening a buffer? I imagine there may be some form of :earlier that does this.

Update: Many are suggesting

7条回答
  •  花落未央
    2021-01-30 09:16

    :earlier {N}m Go to older text state about {N} minutes before.
    

    That should help... And even you have {N}h which is about {N} hours before.

提交回复
热议问题