On 05/11/08 21:45, Greg Klein wrote:
>
>
>>> The output of my :grep command goes to a "quickfix list".
>> The output
>>> of each :grep will be saved in its own quickfix list. I can
>> view and
>>> step through the latest such list with :copen which will create a
>>> "quickfix window" (aka "error window") to contain the list.
>> Or I can
>>> view a previous quickfix list in the quickfix window with
>> :colder. But
>>> I'd like to view more than one list at a time. That is, I'd like to
>>> display more than one quickfix window. Possible?
>> Sort of. Check out location lists.
>>
>> :help location-list
>>
>> You basically change 'c' into 'l' or add an 'l' prefix and
>> you get a window-local quickfix list. So you can have as many
>> location lists as you have windows, plus you can have the
>> quickfix list, all at once.
>>
>> Ben.
>>
>
> Got it, thanks Ben and Tony. But to be clear, the location list is
> actually per tab page, not per window, right? (A tab page can be split
> into multiple windows.)
no, it's per window, look:
*location-list* *E776*
A location list is similar to a quickfix list and contains a list of
positions
in files. A location list is associated with a window and each window can
have a separate location list. A location list can be associated with only
one window. The location list is independent of the quickfix list.
>
> So, at most I can view two grep list windows in the same tab page which
> I
> can do as follows:
>
> :grep args1
> :copen
> :lgrep args2
> :lopen
Best regards,
Tony.
--
"I have to convince you, or at least snow you ..."
-- Prof. Romas Aleliunas, CS 435
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---