Hi everybody, not sure if it is relevant or not, but I happen to edit VERY long files, and the problem is the "undo". The undo file can grow VERY large, for natural reasons. Since what I usually need is to filter out unneeded lines, I usually type:
:setlocal ul=-1 (that means "no undo file, please") for the interested file. That speeds up things a lot. If I need to "remember" how the file was at a particular point, I just do :w now and then. If I want to save the original file, I just get out from the editing session with :q! (without having typed any intermediate :w ). The only inconvenience is that you have to be careful with the commands you type... Hope it helps, Antonio On Thu, Jan 28, 2016 at 5:37 AM, 依云 <[email protected]> wrote: > The steps to reproduce: > > 1. get a large enough text file, say tens of thousands of lines (there > don't need to be long lines) > 2. copy it as file a and b (it doesn't matter if they are the same or > different) > 3. run vim -N -u NONE a, then do :g/4/d. > 4. run vim -N -u NONE -d a b, then do :g/4/d in one of the buffer. > it's much slower. Also undo is really slow too. > > -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
