Technology TidBits

Answers to various technical questions on php programming, mysql, linux, and many more categories.



Add comment:
Name:
Email:
Comment: *
(Use BBcode - No HTML)


You MUST answer this simple math equation - to prevent spammers: 8 + 7 =  


How can I undo and redo changes in vi?

Last updated: 09/06/2010
Using vi, it's very easy to undo any number of changes you have made.  Make sure you are not editing (hit Esc), and hit the u.  This un-does the last change you made (in edit mode).  Repeating the u will continue to backtrack your changes. 

If you undo too many times, use cntrl-R will redo the last change you undid.  Again you can keep doing over and over.




Powered by KnowledgebasePublisher 1.1
Superb Internet
Content provided by Roberts WebForge, Inc.