Monday, April 4, 2011

Re: basic help with grep in vim 7.3

On 2011-04-04, Christian Brabandt wrote:
> On Mon, April 4, 2011 6:37 am, Gary Johnson wrote:
> > but to be honest, it's not clear to me from that explanation what
> > the effect of the g flag is. I don't use :vimgrep very much.
>
> from :h vimgrep:
> Without the 'g' flag each line is added only once.
> With 'g' every match is added.
>
> So if a pattern matches several times on a line, that line is either
> added once (without the g-flag) or every time for every match (with
> g-flag) to the quickfix list.

Thanks. That makes perfect sense now.

Regards,
Gary

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

No comments: