sponsor Vim development Vim logo Vim Book Ad

basic Tip #39: Undo and Redo

 tip karma   Rating 1183/484, Viewed by 23065 

Read and edit this tip on the Vim tip wiki. The wiki may have a more recent version of this tip.

created:   March 7, 2001 14:52      complexity:   basic
author:   Anonymous      as of Vim:   5.7

To undo recent changes, use the u[ndo] command:

u              undo last change (can be repeated to undo preceding commands)
U              return the line to its original state (undo all changes in current line)
CTRL-R         Redo changes which were undone (undo the undo's).

For a full description of the undo/redo commands refer to

:help undo

 rate this tip  Life Changing Helpful Unfulfilling 

<< Cursor one line at a time when :set wrap | Insert a file >>

Additional Notes

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo