If I use :messages
vim command I get to pager like mode with vim log, where I cannot select lines without mouse (in some programs like neovim-qt I cant even use right-click menu (like in gnome terminal) to copy text)
how to copy 3 last lines?
Press y to copy, or d to cut the selection. Move the cursor to the location where you want to paste the contents. Press P to paste the contents before the cursor, or p to paste it after the cursor.
You can redirect the output of :message
to the clipboard register (@+
) or primary register (@*
):
:redir @+
:3message
:redir END
See :help :redir
, :help :message
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With