So, if I get an error from a plugin, I'd like to be able to report that error on GitHub or similar.
Unfortunately, it's not mouse-selectable; and after appearing and asking me to hit RETURN, it seems gone forever.
I've discovered that I can cause the errors to appear again using
:messages
or:3messages
or similar; but they appear in the same fashion: un-selectable, useless.Another Stacker asked a similar question, which yielded the useful command
:let @+=v:errmsg
— but that only captures the very last line of the messages; many errors I see consist of multiple lines, all of which I'd like to select.
Please help me either A. turn a :messages
window into a buffer, so I can use normal likewise-visual selection to copy what I want to report outside of Vim, or at least B. construct something I can throw into my .vimrc
that will copy all of the lines of the most recent error onto my clipboard.
Thanks! (=