How do I do redo (i.e. “undo undo”) in Vim?

后端 未结 10 725
花落未央
花落未央 2021-01-29 16:53

In Vim, I did too much undo. How do I undo this (that is, redo)?

10条回答
  •  你的背包
    2021-01-29 17:53

    Practically speaking, the :undolist is hard to use and Vim’s :earlier and :later time tracking of changes is only usable for course-grain fixes.

    Given that, I resort to a plug-in that combines these features to provide a visual tree of browsable undos, called “Gundo.”

    Obviously, this is something to use only when you need a fine-grained fix, or you are uncertain of the exact state of the document you wish to return to. See: Gundo. Graph your Vim undo tree in style

提交回复
热议问题