On 26/10/08 16:05, Peng Yu wrote:
> Hi,
>
> I want to grep two patterns. But it seems the following one is not
> working. Can somebody let me know how to do it correctly.
>
> :grep 'label\|ref' *.tex
>
> Thanks,
> Peng

External grep uses different patterns than Vim. Use vimgrep instead:

        :0verbose vimgrep /\<label\>\|\<ref\>/g  *.tex

Best regards,
Tony.
-- 
"The New York Times is read by the people who run the country.  The
Washington Post is read by the people who think they run the country.
The National Enquirer is read by the people who think Elvis is alive
and running the country ..."
                -- Robert J Woodhead

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

Reply via email to