On Mar 21, 6:02 pm, Ivan Krasilnikov <[email protected]> wrote: > On Mon, Mar 21, 2011 at 13:48, pmehrwald <[email protected]> wrote: > > Hi, > > > We are facing a severe problem on using :g on our machines at work. On > > two different dell machines this command causes problems after > > updating to x64 Windows 7 or Windows Server 2008. > > > The scenario is as follows: > > * Logfile ~100Mb opened > > * execute :%g!/xxx/d to remove some lines > > Can you try this command instead and tell us if the problem is gone - > :%g!/xxx/"_d > The "_ part here tells d not to yank each line it deletes.
Sounds like the OP found a solution on his own, but FYI this command will not work as intended. You're adding the comment instead of deleting to the black-hole register. Note that the :g command takes an ex command, not a normal-mode command. Your command should read: :%g!/xxx/d _ or even better: :v/xxx/d _ (% is the default range for g/v commands and :v is a synonym for :g!) -- 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
