|
|
|
|
|
by somat
927 days ago
|
|
I still use a lot of nvi on openbsd. and it has a strange quirk to it's undo. so "u" undoes your last action. but if you hit it again it undoes the undo, a redo if you will. I did not really think about it much, just accepted that was how nvi worked, a single level undo. But that is not true at all. the trick is you have to "u" undo then "." repeat previous action and you get the full undo stack. and, like the parent post mentioned, you also get a full redo stack the same way. Get it to redo then repeat previous action. I am not exactly sure what vim does, But I suspect this is one of it's improvements. |
|
(Actually, I have so rarely used vi that I'm relying on the implications of the Vim manual that it's original vi behavior.)