Java undo and redo in a Swing application

Here's a step-by-step approach for how to implement "undo" and "redo" behavior in your Java text components, i.e., the JTextArea JEditorPane and JTextPane I should note that you don't get this behavior for free -- you have to implement it yourself, hence this undo/redo tutorial.

How to undo and redo changes in vi/vim

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:

Thu, May 29, 2003

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