某些 Vim 个二合字母显示不正确
Certain Vim digraphs do not display properly
上标2,3,+下标4显示不正确。上标2显示为<8e>
,上标3显示为<8f>
,下标4显示为ㄙ
,上标+显示为ס
.
在我的.vimrc
中设置如下:
execute "digraphs 0S " . 0x2070
execute "digraphs 1S " . 0xB9
execute "digraphs 2S " . 0xB2
execute "digraphs 3S " . 0xB3
execute "digraphs 4S " . 0x2074
execute "digraphs 5S " . 0x2075
execute "digraphs 6S " . 0x2076
execute "digraphs 7S " . 0x2077
execute "digraphs 8S " . 0x2078
execute "digraphs 9S " . 0x2079
execute "digraphs +S " . 0x207A
execute "digraphs -S " . 0x207B
execute "digraphs =S " . 0x207C
execute "digraphs (S " . 0x207D
execute "digraphs )S " . 0x207E
execute "digraphs nS " . 0x207F
execute "digraphs 0s " . 0x2080
execute "digraphs 1s " . 0x2081
execute "digraphs 2s " . 0x2082
execute "digraphs 3s " . 0x2083
execute "digraphs 4s " . 0x2084
execute "digraphs 5s " . 0x2085
execute "digraphs 6s " . 0x2086
execute "digraphs 7s " . 0x2087
execute "digraphs 8s " . 0x2088
execute "digraphs 9s " . 0x2089
还有一些其他异常,但我想任何解决这 4 个问题的解决方案都可以应用于其余问题。我试过将编码设置为 utf-8 并使用十进制值而不是十六进制,但问题仍然存在。我觉得是字体问题,但我尝试了十几种不同的字体,每一种都会产生相同的奇怪字符。有什么想法吗?
确切地说,您为什么要将所有这些二合字母重新定义为它们的内置值?还有,你是如何确定下标 4 是 ㄙ
?
₄
是用 <C-k>4s
获得的,而 ㄙ
是用 <C-k>s4
获得的,所以在我看来你只是乱按了键。
上标2,3,+下标4显示不正确。上标2显示为<8e>
,上标3显示为<8f>
,下标4显示为ㄙ
,上标+显示为ס
.
在我的.vimrc
中设置如下:
execute "digraphs 0S " . 0x2070
execute "digraphs 1S " . 0xB9
execute "digraphs 2S " . 0xB2
execute "digraphs 3S " . 0xB3
execute "digraphs 4S " . 0x2074
execute "digraphs 5S " . 0x2075
execute "digraphs 6S " . 0x2076
execute "digraphs 7S " . 0x2077
execute "digraphs 8S " . 0x2078
execute "digraphs 9S " . 0x2079
execute "digraphs +S " . 0x207A
execute "digraphs -S " . 0x207B
execute "digraphs =S " . 0x207C
execute "digraphs (S " . 0x207D
execute "digraphs )S " . 0x207E
execute "digraphs nS " . 0x207F
execute "digraphs 0s " . 0x2080
execute "digraphs 1s " . 0x2081
execute "digraphs 2s " . 0x2082
execute "digraphs 3s " . 0x2083
execute "digraphs 4s " . 0x2084
execute "digraphs 5s " . 0x2085
execute "digraphs 6s " . 0x2086
execute "digraphs 7s " . 0x2087
execute "digraphs 8s " . 0x2088
execute "digraphs 9s " . 0x2089
还有一些其他异常,但我想任何解决这 4 个问题的解决方案都可以应用于其余问题。我试过将编码设置为 utf-8 并使用十进制值而不是十六进制,但问题仍然存在。我觉得是字体问题,但我尝试了十几种不同的字体,每一种都会产生相同的奇怪字符。有什么想法吗?
确切地说,您为什么要将所有这些二合字母重新定义为它们的内置值?还有,你是如何确定下标 4 是 ㄙ
?
₄
是用 <C-k>4s
获得的,而 ㄙ
是用 <C-k>s4
获得的,所以在我看来你只是乱按了键。