在Vim中,我做了太多的撤销操作。如何撤消此操作(即重做)?
发布于 2009-10-12 18:20:36
还可以查看:undolist
,它提供了通过撤消历史记录的多个路径。如果您在撤消过多操作后不小心键入了某些内容,则此功能非常有用。
发布于 2012-06-23 19:38:55
使用:earlier
/:later
。重做所有你需要做的事情
later 9999999d
(假设您第一次编辑该文件最多是在9999999天前),或者,如果您记得当前撤消状态与所需撤消状态之间的区别,请分别使用Nh
、Nm
或Ns
来表示小时、分钟和秒。+用于文件写入的:later N<CR>
<=> Ng+
和:later Nf
。
发布于 2009-10-12 17:15:47
Vim documentation
<Undo> or *undo* *<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}
https://stackoverflow.com/questions/1555779
复制相似问题