在Vim中,我作了太多的撤消。 如何撤消此操做(即重作)? html
奇怪没有人提到:earlier
/ :later
。 要重作你须要作的一切 vim
later 9999999d
(假设您最初在9999999天前编辑了该文件),或者,若是您还记得当前撤消状态与所需撤消状态之间的差别,请分别使用Nh
, Nm
或Ns
表示小时,分钟和秒。 + :later N<CR>
<=> Ng+
和:later Nf
用于文件写入。 spa
Ctrl + r code
在命令模式下,使用U键撤消,使用Ctrl + r重作。 请访问http://www.vim.org/htmldoc/undo.html 。 htm
CTRL + r 文档
“r”是小写的。 get
Vim文档 it
<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}