On Fri, May 1, 2020 at 5:52 PM Yegappan Lakshmanan <[email protected]> wrote: > > Hi all, > > Currently we have the line(), col(), virtcol() and getpos() functions > to get the position of a particular mark. But we don't have a > function to get the list of local/global marks (information displayed > by the :marks command). A plugin needs to call the above functions > in a loop for various supported local/global marks to create this list. > What do you think about adding a getmarklist() function which will > return the List of placed global/local marks? The help text for this function > is below.
In the meantime (until you get it into the C code) I suppose your plugin could get the output of :marks into a variable by means of :redir and parse that: it seems fairly straightforward: one heading line, then repeatedly <mark name> <line> <column> <file or text> with one or more spaces before each. Best regards, Tony. -- -- You received this message from the "vim_dev" 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAJkCKXuN8a4N9X1Nxa9utp4j1sNcCOF%3DrT%2Bj_rivHM14eyY4wA%40mail.gmail.com.
