On 2008-10-26, Peng Yu <[EMAIL PROTECTED]> 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
The problem is that vim also interprets that backslash, even though it's enclosed within single-quotes. Just add another backslash like this: :grep 'label\\|ref' *.tex and it will work fine. Regards, Gary --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
