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

后端 未结 10 599
花落未央
花落未央 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:44

    Refer to the "undo" and "redo" part of Vim document.

    :red[o] (Redo one change which was undone) and {count} Ctrl+r (Redo {count} changes which were undone) are both ok.

    Also, the :earlier {count} (go to older text state {count} times) could always be a substitute for undo and redo.

提交回复
热议问题