How do I paste non-ASCII characters into vim?

前端 未结 4 1473
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-29 11:30

My terminal emulator is configured for Unicode character encoding and my .vimrc contains the line

set encoding=utf-8

but when I try pasting

4条回答
  •  孤独总比滥情好
    2020-12-29 12:10

    1. From where are you trying to paste it? If it is opera, then since opera-10.5* paste is broken in both directions. Before pasting anything you need to use xclip -o|xclip -i workaround (add -sel clip for clipboard).
    2. What command do you use?

提交回复
热议问题