Saturday, April 10, 2010

Re: Is there a variable containing all tokens that matched a regex search term?

On 10 April 2010 12:29, Christian Brabandt wrote:

> Hi tomPorter!
>
> On Fr, 09 Apr 2010, tomPorter wrote:
> > Is there a way to create a new window and populate it
> > with only the found items?

You snipped the rest of the specification.

> I would do it like this, which means
> :redir => a              " redirect output into variable a
> :g/&&/                   " print all lines matching the pattern &&
> :redir end               " end redirection
> :vert new                " open a new window
> :put =a                  " put the result into that window

That's not what the OP asked for. --Antony

--
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

To unsubscribe, reply using "remove me" as the subject.

No comments: