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
You can use the getmarklist() function to get information about the list of global or local marks.
-
1getmarklist() 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.– 3N4NAug 15, 2022 at 17:46 -
1But the last part of this question can be achieved with
getmarklist()
and something likefilter(range(1, bufnr('$')), 'buflisted(v:val)')
.– 3N4NAug 15, 2022 at 17:52