Vim:输入带有8位十六进制代码的Unicode字符

eps*_*lbe 35 unicode vim utf-16 utf

如何输入Unicode字符, without copying it to the clipboard and pasting it?

Things I know:

  • The command ga角色上的命令 gives me hex:0001d4ed.
  • 我可以将它复制到剪贴板上并通过它粘贴"+p.
  • 我知道如何输入具有4位十六进制代码的Unicode值:
    <C-v>u例如<C-v>u03b1给出?字符.

Edu*_*nec 48

您可以使用<C-v>U(即大写的u)输入8位十六进制代码点字符.

更多信息在这里这里.


ib.*_*ib. 11

Vim功能旨在简化输入无法直接输入的字符.它被称为Digraphs(见:help digraphs).

要定义用于输入的自定义图, use an Ex command similar to the one below.

:dig dd 120045
Run Code Online (Sandbox Code Playgroud)

where 120045是 命令 as reported by the ga.

使用有向图插入字符很简单:键入 Ctrl+ K后跟该有向图的快捷方式(dd 对于上面的一个).


eps*_*lbe 6

Vim存在一个Unicode插件.根据插件描述,这个插件有三个主要特征:

  1. 使用Unicode名称或代码点完成字符/有向图.
  2. 识别光标下的字符/有向图.
  3. 按名称搜索有向图; 将两个普通字符转换为相应的有向图.