Wednesday, December 23, 2009

Re: search across lines?

On Dec 22, 6:19 pm, "John Beckett" <johnb.beck...@gmail.com> wrote:
> Bee wrote:
> >    /\V<c-r>=substitute(escape(@", '\'), '\n', '\\n', 'g')
> The tip puts the search pattern in the search history and it's
> nice to be able to later recall that pattern. It's slightly
> nicer if you don't have ugly \V in patterns, particularly when
> it's not required (most searches won't need it).

Why do you think \V is 'ugly'?
Using \V seems (to me) an appropriate use of a tool.

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

No comments:

Post a Comment