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.
    – 3N4N
    Aug 15, 2022 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, 2022 at 17:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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