wrote:
> On 30/09/11 08:44, sinbad wrote:
>
> > hi,
>
> > i am trying to store the contents of location list, so as to use
> > multiple location lists for the same split-window window.
> > here is what i did. created a location list for some pattern.
> > now i ran the following commands in vi.
>
> I hope you mean Vim, and in 'nocompatible' mode. Legacy vi has no
> quickfix capabilities.
>
>
>
> > :let x= getloclist(0)
> > :call setloclist(0, x, 'r')
>
> > location-list is screwed up, i can see some contents in the location
> > list
> > with filename missing. is it the rightway of using get/setloclist()
> > functions.
>
> > thanks
>
> Does it work if you omit the ,'r' (last argument of setloclist())?
>
> Best regards,
> Tony.
> --
> Do what comes naturally now. Seethe and fume and throw a tantrum.
I tried that, it doesn't work too. when i print the stored list 'x' it
seems to have
all the values properly. but after i use setloclist(0,x) and open the
location list
the valid bit is set to '0'. i am not sure if i am using it wrongly or
if there is a
bug in the setloclist() function.
--
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
No comments:
Post a Comment