Sunday, November 6, 2011

Re: copy the output of :%g command to a register

On Nov 6, 10:16 pm, sinbad <sinbad.sin...@gmail.com> wrote:
> hi, how to copy the output of :%g command to a register
>
> cheers

The % is not needed as the default is 1,$

First clear register a
qaq

Append all lines containing foo to register a
:g/foo/y A

-Bill

--
You received this message from the "vim_use" 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

No comments: