On 2010/9/4 3:26, Marc Weber wrote:
Excerpts from H Xu's message of Fri Sep 03 20:04:49 +0200 2010:
   Hello everybody,

When I use :grep, I was confused that why I can't jump to the file from the
quickfix list. For example, when I use ":grep aaa *", I get the
following result:

|| 29:      " "aaa.bbb" load "aaa" and then "bbb".
|| 25:      " "aaa.bbb" load "indent/aaa.vim" and then "indent/bbb.vim".
|| Binary file libiconv2.dll matches
|| Binary file python26.dll matches
THere are two components which must fit:
echo&grepprg (the command producing the output)
echo&grepformat (the format parsing the grep locations)

my grepprg is grep -n $* /dev/null
my grepformat is %f:%l:%m,%f:%l%m,%f  %l%m

which work nicely with gnu grep.

Your output does not seem to include a filename (?).

Marc Weber

Hello,

I have solved this problem. My grepprg is grep -nh $*, so there is no file name.
Thank you very much.

Regards,
Hong Xu
2010/9/4

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

Reply via email to