Friday, February 19, 2010

Re: Reduce search to unfolded parts

Hi Matt!

On Fr, 19 Feb 2010, Matt Wozniski wrote:

> On Fri, Feb 19, 2010 at 12:46 PM, Christian Brabandt <cblists@256bit.org> wrote:
> > May be something like this works:
> > :%s/foobar/\=printf("%s", foldlevel(".")?submatch(0):'foo')/
>
> Better,
>
> :folddoopen s/foobar/foo/g

Shoot! I knew :folddoopen, but didn't find it when I was looking for the
exact command name.

regards,
Christian

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: