I am having issues with pasting text from the clipboard into Vim (v7.4) on an HPC cluster using Centos, which I have logged into using MTPuTTY. I still get the same error when I'm logging in via MobaXterm.
This is the result of pasting into e.g. sublime text:
Which is what's correctly on the clipboard.
However, when I try paste into Vim, using shift+insert
, the output is truncated and contains some previous information that I had on the clipboard (i.e. the -Ou | \
part:
I have made sure I'm in insert mode. The issue seems to sporadically appear after using Vim for a while and the only thing that solves it is logging out of the HPC and logging back in again. I have absolutely no idea what's causing this.
I only have :color desert
in my ~/.vimrc
.
p
(paste) instead ofshift + insert
?p
pastes from the clipboard,yth
yanks nothing, ando...
opens a new line with the content that followsshift+insert
in insert mode, you could also paste directly from the clipboard, natively in vim. In normal mode, what about"+p
or"*p
?