On Oct 20, 11:13 pm, oversky <[email protected]> wrote:
> I used to use :cw to open the quickfix list. This works with vimgrep,
> but I just found that only :copen works with grep.
> Unfortunately, in my system the quickfix list generated by grep
> doesn't link with the source. The command :cn will jump to the next
> item in the quickfix list,
> but the cursor in the source will not. This doesn't happen with
> vimgrep.

It is possible that Vim is not recognizing the items in the quickfix
window as locations that can be jumped to. :grep uses the 'grepformat'
option to parse the output of the command given in 'grepprg'. What are
the values of these two options on your system? The defaults on my
Windows XP install work fine:

:verbose set grepprg? grepformat?

  grepprg=findstr /n
  grepformat=%f:%l:%m,%f:%l%m,%f  %l%m
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to