How is the undo tree used in Vim?

前端 未结 8 652
面向向阳花
面向向阳花 2020-12-22 14:53

This answer says:

Vim\'s undo/redo system is unbeatable. Type something, undo, type something else, and you can still get back the first thing you typed

8条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-22 15:56

    If you're using vim, you can navigate through the undo tree using:

    • u: (undo) move back in the undo tree
    • Ctrl+R: (redo) move forward in the undo tree

    Other ways of bringing document back or forward in time:

    • :earlier 15m: move back in time 15 minutes
    • :later 15m: move front in time 15 minutes

提交回复
热议问题