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

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

    Vim documentation

          or                  *undo* ** *u*
    u           Undo [count] changes.  {Vi: only one level}
    
                                *:u* *:un* *:undo*
    :u[ndo]         Undo one change.  {Vi: only one level}
    
                                *CTRL-R*
    CTRL-R          Redo [count] changes which were undone.  {Vi: redraw screen}
    
                                *:red* *:redo* *redo*
    :red[o]         Redo one change which was undone.  {Vi: no redo}
    
                                *U*
    U           Undo all latest changes on one line.  {Vi: while not
                moved off of it}
    

提交回复
热议问题