1

Is there a way to organize / parse the :marks list? E.g. list them in the order they were created, rather than alphabetically. Or see which marks are associated with currently open buffers.

Aaron Parisi
  • 239
  • 1
  • 7

1 Answers1

2

You can use the getmarklist() function to get information about the list of global or local marks.

  • 1
    getmarklist() doesn't return info about the creation-time of the mark, though. It basically returns what :marks returns AFAIK. So maybe not what the OP wants. – 3N4N Aug 15 '22 at 17:46
  • 1
    But the last part of this question can be achieved with getmarklist() and something like filter(range(1, bufnr('$')), 'buflisted(v:val)'). – 3N4N Aug 15 '22 at 17:52