I wanted to add an unicode image of cat to my file, but when I press ctrl+v u 1 f 4 3 1
the result is ὃ1
rather than 🐱
.
Vim always stops reading the code after the fourth character and then it just prints the number 1 at the end. It does the same thing when I try to just paste the cat from clipboard. All unicode characters with four digit codes work just fine.
Why is it so? How can I use longer unicode codes in vim?
set fileencoding?
(with the?
). If it’s notutf-8
or similar, you’re out of luck, because the cat emoji won’t be representable in older encodings (likelatin-1
)..bashrc
and it is inutf-8
for sure.