2

Sometimes when I paste (via cmd+v) some text into neovim, it inserts <Paste> at the bottom, i.e:

This
was pasted and
I got some bonus letters
<Paste>

I can't figure where this text comes from and googling it is impossible because I can't search for the actual tag, it just shows results for anything including "paste" and "inserts text" which is pretty common when talking about copy-paste...

Often it leaves me in PASTE mode afterwards too, which might be a clue.

I'm on OS X, iTerm2 with I guess the default pbcopy/pbpaste providers, perhaps its a bug with them?

  • Ive never seen this happen in terminal vim, and i use pbcopy/paste all the time (via r !, ”*, and literal Command-V in paste mode). Probably specific to neovim/iterm – D. Ben Knoble Feb 12 at 14:20
0

This is a known issue with Neovim.

The suggested workaround until the problem is fixed is

au InsertLeave * set nopaste

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.