Wednesday, April 22, 2009

vim: how to undo the undo

One of the first things you learn in vim is how to undo changes using u. (Duh!)

The quetion is, how do you undo the undo if you've accidentally pressed u?

Well the answer is:

:redo

or shortens to:

:red

(note, in case you haven't figured it out yet, the bits and pieces here are not earth shattering. Since nobody really even reads this blog, I really only use it for myself.)

No comments: