On Sat, 5 Mar 2011, Donald Allen wrote:
If you delete a line, it gets pushed onto the register stack (the line lands in the "" register). If you then undo the delete with 'u', the register stack doesn't get popped -- it remains as it was just prior to the 'undo'. So the undo has not undone all the effects of the command you are undoing. 7.3 with patches through 138.
Undo isn't intended to "undo all the effects of the command", per se. It reverses a change (or a block of changes) made to a buffer, not changes to the state of the entire program. Can't quite see where in the help that's documented, but it seems rational to me.
-- Best, Ben -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
