1

I'm having an issue where, when I copy from or paste into vim using the * register, unicode characters seem to be mangled in different ways depending on the source and target of the copy-paste. Pasting into the buffer using +V in INSERT mode pastes what I would expect.

For example copying from vim to TextEdit produces multiple characters for each source character…

in vim:
“I am copied from « vim » ⇒ TextEdit”

in TextEdit:
“I am copied from « vim » ⇒ TextEdit”

…and copying from TextEdit to vim produces something else

in TextEdit:
“I am copied from TextEdit ⇒ « vim »”

in vim:
<d2>I am copied from TextEdit ? <c7> vim <c8><d3>

The same issue shows up for other applications as well, not just TextEdit.

A couple questions:

  1. I'm assuming the characters that show up in TextEdit are a decomposition of the source unicode characters, but what are the <d2> characters that show up in vim?
  2. Does anyone know the source of the issue and how to resolve it such that copy-pasting between vim and OSX apps works as expected?
spbots
  • 1,513
  • 1
  • 15
  • 22

0 Answers0