On Sat, 11 Apr 2009 01:53:31 +0800, Tony Mechelynck  
<[email protected]> wrote:

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

Thank you, that's not what I want.

It's right that vim must use the filename, line, column to jump to the  
match, but I think it can hide these relevant infos from error window,  
just use them transparently. That's the use of errorformat I thought, but  
I failed...

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

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

Reply via email to