Gautam Iyer wrote:
> If I undo a change, and then do > > undojoin | delete > > I get an error. Perhaps you could add a "undojoin!" command that > silently ignores the "undojoin" if the previous operation was an undo. That is not possible. Allowing this would corrupt the undo information. At least without making an effort of erasing the change that was undone before undojoin and fixing up the saved information. That means redo will not be possible. > I currently (in scripts) have to do something like > > try > undojoin | <wonderfull stuff> > catch > <wonderfull stuff> > endtry > > Also after reading the documentation, I realize I'm unclear on the scope > of :undojoin. Does it mean all changes a script makes until the user > enters insert mode will be part of the previous undo block? Or just the > change immediately following the undojoin command? Could you clarify > this point a little in the docs? Mostly an undo block continues until user interaction. It's explained just above :undojoin. -- hundred-and-one symptoms of being an internet addict: 174. You know what a listserv is. /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---