A flowchart on how to undo changes in Git, from this tweet.
vi/vim editor FAQ: How do I undo and redo changes in the vi and vim editor?
Here are a couple of quick examples of how to undo and redo (“re-do”) recent changes in your vi/vim editor sessions.
vim undo (how to undo a change in vi/vim)
You “undo” changes in vi and vim with the undo command, which is the
u key when you are in vim command mode. For instance, if you start with this text in your editor:
I started the Google AdWords campaign last night. I'm using AdWords to supplement some of the searches where the www.devdaily.com site does not appear in the first page of search results. One example is when google users search for "unix example", the "www" site does not show up well for some reason. Therefore, I'm spending a little money to buy some exposure. Stay tuned for results...