Vim documentation: undo

main help file

*undo.txt*      For Vim version 7.2c.  Last change: 2006 Apr 30


		  VIM REFERENCE MANUAL    by Bram Moolenaar



Undo and redo						*undo-redo*

The basics are explained in section |02.5| of the user manual.

1. Undo and redo commands	|undo-commands|
2. Two ways of undo		|undo-two-ways|
3. Undo blocks			|undo-blocks|
4. Undo branches		|undo-branches|
5. Remarks about undo		|undo-remarks|

==============================================================================

1. Undo and redo commands				*undo-commands*


<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}

:u[ndo] {N}		Jump to after change number {N}.  See |undo-branches|
			for the meaning of {N}.  {not in Vi}


							*CTRL-R*
CTRL-R			Redo [count] changes which were undone.  {Vi: redraw
			screen}


							*:red* *:redo* *redo*