How do I paste non-ASCII characters into vim?

前端 未结 4 1476
佛祖请我去吃肉
佛祖请我去吃肉 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:05

    How to type a non ASCII code into vi

    You'll have to know what your encoding is to enter the proper codes, I assume you left VI at the default.

    In VI, go into insert mode, while in insert mode, press

    Ctrl-v 172

    That should insert the Logical Not (sideways and inverted L) character defined here:

    http://www.htmlhelp.com/reference/charset/iso160-191.html

提交回复
热议问题