Thursday, September 29, 2011

setloclist() doesn't work

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.

: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


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