如何在Vim中进行重作(即“撤消撤消”)?

在Vim中,我作了太多的撤消。 如何撤消此操做(即重作)? html


#1楼

奇怪没有人提到:earlier / :later 。 要重作你须要作的一切 vim

later 9999999d

(假设您最初在9999999天前编辑了该文件),或者,若是您还记得当前撤消状态与所需撤消状态之间的差别,请分别使用NhNmNs表示小时,分钟和秒。 + :later N<CR> <=> Ng+:later Nf用于文件写入。 spa


#2楼

Ctrl + r code


#3楼

在命令模式下,使用U键撤消,使用Ctrl + r重作。 请访问http://www.vim.org/htmldoc/undo.htmlhtm


#4楼

CTRL + r 文档

“r”是小写的。 get


#5楼

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}
相关文章
相关标签/搜索