On 10/04/09 11:59, Yue Wu wrote:
>
> I use to grep some string:
>
> :lvimgrep /foo/ %
>
> the error window's format is something like this:
>
> /portable/apps/vim/vim72/doc/quickfix.txt|313 col 4| second quickfix
> window.
>
> I don't want to show the file and position, what I want is like this:
>
> second quickfix window.
>
> What would I need to do to achieve it?
>
Short answer: You can't.
Somewhat longer answer: The quickfix window displays the raw lines of
the errorlist file; the latter must be explicit enough for Vim to find
the line in error; and the vimgrep errorlist output includes the
filename, line and column of the match for that purpose.
Possible workaround: Maybe what you want is to display only the source
file containing the match? Then don't use the :copen (or :lopen) command
but only one or more of
:cc
:cnext
:cprev
:cnfile
:cpfile
:cfirst
:clast
or, of course (in Vim 7), their "local-list" equivalents.
Best regards,
Tony.
--
"I couldn't remember when I had been so disappointed. Except perhaps
the time I found out that M&Ms really *do* melt in your hand ..."
-- Peter Oakley
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---