Hi Suresh, On 4/20/06, Suresh Govindachar <[EMAIL PROTECTED]> wrote: > Hello, > > I don't understand location-list, but it seems like something I > can use. >
A location list contains a list of file locations and is associated with a Vim window. The location list can contain locations from multiple files. You can consider a location list as a window-local quickfix list. > > Can the location-list feature be used to help with > jumping to the first line of folds of fold level 1 in a buffer? > Or jumping to first line of all folds in the buffer? If so how? > Yes. You can add file locations to a location list in several ways. To read file locations from a file, use the ":lfile" or ":lgetfile" or ":laddfile" commands. To add locations from the current buffer use the ":lbuffer" or ":lgetbuffer" or ":laddbuffer" commands. To add locations from a Vim expression, use the ":lexpr" or ":lgetexpr" or ":laddexpr" commands. To add locations from a Vim plugin, use the setloclist() function. > > (Why is location-list associated to a window rather than a > buffer?) > The location list contains file positions from multiple files, so it is associated with a window. - Yegappan
