Ulrich Lauther wrote: > I observe extremely long respnse times when I try to delete a large > range of lines, say ".,$d" > > I suspect, the following happens: > > The first line of the range (n lines) is deleted, the other lines up to the > end of the buffer (at least n-1) are renumbered. > Then the second line is deleted, the remaining ones are renumbered, and so on. > This gives n**2 complexity. > Deleting the n lines first an renumbering the remaing ones only once would > be much faster. > Am I right?
Why do you think this happens? It's probably because the lines are saved for undo. Try setting 'undolevels' to -1 and check the speed then. -- "Hit any key to continue" is a lie. /// 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://www.ICCF.nl ///