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.

1 Answer 1

2

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

2
  • 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.
    – kadekai
    Aug 15 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)').
    – kadekai
    Aug 15 at 17:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.