Sorting messages in vim

Viewed 43

Is there a way to sort:

:messages

in vim?

Whenever I type in :messages to debug some commands because it is sorted from oldest to newest and I have several hundred messages I have to press space about 20 times to view the most recent message. I tried :h message but couldn't find a place where it mentions sorting. Is it possible to do this?

1 Answers

I usually send the messages into a buffer when I need to analyse them.

new
put=execute('message')

But when I need to debug my own plugins, I use a framework (that I'm maintaining). The debug messages can be emitted either as messages, or as entries in the quickfix/loclist window, or into a file.

Related