I want to paste some text into Vim in GNOME Terminal on Ubuntu 20.04. Before doing that, I run:
:set paste
I use that so that autoindent
and other Vim features don't change the text that I am copying.
Then I enter insert mode, and I press Ctrl+Shift+V to paste the text into the document.
I have found that it prefixes the text copied ("foobar" in this example) with this:
<F22>foobar
Yes, that is the lesser-than sign, followed by the letter F, followed by the number 2, followed by the number 2, followed by the greater-than sign. Does anyone know why this appears?
cat
ortail
) and paste it there to see how it will show up?<c-s-v>
?<F22>
. If I runcat
and press Ctrl-Shift-V, I don't see<F22>
:set paste
, I don't see<F22>
once I enter insert mode and press Ctrl-Shift-V. If I don't enter insert mode first, pasting seems to work! This is a surprise to me, as I remember it not working but treating the pasted text as if I had typed them (i
would enter insert mode,a
would append, etc). But it could well be that an update or a config modification changed this. Any idea of what might have changed this?