On Thu, May 06, 2021 at 12:45:21AM +0200, Dominique Pellé wrote: > Hi > > I noticed that running a vim command such as... > > :g/./d > > ... was slow with a large number of lines, whereas it used to > be reasonably fast. It e.g. takes ~7 seconds with "only" > 5000 lines using: > > $ yes | nl | head -5000 | vim - -c 'g/./d' > > At first I thought it was a recent vim regression. But then > I recalled that I recently installed the clipman applet [1] in > my xfce4 desktop. I disabled that xfce4 applet and saw that > the :g/./d command in vim became faster (~ 2 sec). > > I then realized that the Vim command :g/./d copies > each line that it deletes to the clipboard. And somehow > the clipman applet made copying to the clipboard slower.
This was supposed to be addressed by 7.4.396, which defers updating the selection ownership until :g is done running. Cheers, -- James GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7 2D23 DFE6 91AE 331B A3DB -- -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/20210506024457.wor6uhtyd7ejbuuj%40localhost.
