On Thu, Sep 19, 2019 at 12:28 PM Bram Moolenaar <
Br...@moolenaar.net> wrote:
>
> Yegappan wrote:
>
> > Currently the following Vim built-in functions are available to get
> > information about individual marks: getpos(), line() and col().
> >
> > But we don't have a function to get the list of marks placed in a
> > buffer or the list of global marks (similar to the list displayed by
> > the :marks command).
> >
> > What do you think about adding a getmarks() function that returns
> > the list of global marks or the list of marks placed in a buffer?
>
> One can loop over all the mark names to get all the values. When would
> it be useful to get the whole list?
>
> If anybody would want to get marks for a buffer that is not in a window
> we could add an optional argument to getpos(). But I don't recall
> anyone asking for this.
>