Very basic question. How can I read the help documentation for the
location list?

On Thu, Nov 6, 2008 at 3:46 AM, Yegappan Lakshmanan <[EMAIL PROTECTED]> wrote:
>
> Hi Tim,
>
> On Wed, Nov 5, 2008 at 4:29 PM, Tim Chase <[EMAIL PROTECTED]> wrote:
>>
>>> It's all in quickfix.txt, of course.
>>
>> indeed, but that's akin to saying that a dictionary contains all
>> great stories...it's all in there, but it takes an craftsman with
>> a vision to assemble them into art :)
>>
>>> Just the first "spiffy trick" I could think of. Maybe the OP (who wanted
>>> several QF windows in parallel to begin with) can give you something
>>> more relevant.
>>
>> I guess I had this nascent shadow of an idea involving a
>> side-window that I could tag  lines/positions like with marks,
>> but be able to manage them with a wider variety of commands like
>> a buffer -- inter alia adding and removing "marks", having the
>> ability to use a ":g"/":v" command to mark a bunch of lines, see
>> some reminder text from my line beside the "mark", save/restore
>> my "marks" (as it's just a buffer).
>>
>
> You can create and add entries to the location list using different
> methods (similar to that used for the quickfix list).
>
> 1. :lfile <file> - load the location list with entries from a file.
> 2. :laddfile <file> - add entries to the location list
> 3. :laddbuffer <bufnr> - add entries from current buffer
> 4. :lexpr <expr> - Add an entry resulting from the expression
>
> You can also use the setloclist() and getloclist() functions to modify
> the location list.
>
> Using the above commands and functions you can implement the
> marks per window or buffer feature you have described above.
>
> A little bit of history behind the location list feature: I proposed a patch
> for the ":qtag" (now called ":ltag") command few years ago that added all the
> matching tags to the quickfix list. Bram suggested that it is better to add
> support for location lists and use it so that it can be used for new 
> per-window
> features. This lead to the implementation of the location list feature and the
> improvement of the quickfix feature.
>
> - Yegappan
>
>>
>> I suppose ideally, I would have heard some plugin/vimscript
>> developer pipe up with "why I use location lists for *cool
>> feature X* in my vimscript that you can look at on vim.org".  To
>> the best of my google-fu, I wasn't able to turn up
>> scripts/plugins by "ex commands used" :)
>>
>
> >
>

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

Reply via email to