Re: select found patterns
- On Mon, 8 Sep 2003, Luiz Siqueira Neto wrote:
> How can I yank all high light patterns found by (/) command?Put
> this is a text for example, and is to a stupid text.
> is again and is again.
> search, yank and put will return this:
> is is is is
let @A = submatch(0) . "\n" | return submatch(0)
let @a = '' | exe '%s/' . escape(a:pat,'/') . '/\=F()/g'
in your .vimrc-file and then type in ":call G('is')". Patterns found are
stored in register "a". To insert its content into the document you're
working on type "ap