hi, how to copy the output of :%g command to a register
cheers
--
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
On 2011-11-06, sinbad wrote:
hi, how to copy the output of :%g command to a register
set nomore
redir @a
%g
redir END
set more
See
:help redir
Regards,
Gary
--
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text you
On 07/11/11 07:16, sinbad wrote:
hi, how to copy the output of :%g command to a register
cheers
The :g command produces no output; the output is from the ex-command
after the second slash in :[range]g/pattern/command.
For the default :p command, see :help :redir
Best regards,
Tony.
--
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