Every now and then when I exit Vim, I see a few error messages at
the bottom of the screen just before Vim terminates.  Is there some
way to capture those messages?

Would using a VimLeave autocommand to write :messages to a file
capture all messages?

I tried putting a script wrapper around Vim, but it doesn't work for
all use cases.

I've noticed this only on my work PC, which means it could be either
Windows gvim or Cygwin vim in a mintty terminal.

Regards,
Gary

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220515210443.GB11054%40phoenix.

Raspunde prin e-mail lui