![使用数字键盘时,Powershell 中的 Vim 会插入不需要的 UTF-8 字符](https://linux22.com/image/1590481/%E4%BD%BF%E7%94%A8%E6%95%B0%E5%AD%97%E9%94%AE%E7%9B%98%E6%97%B6%EF%BC%8CPowershell%20%E4%B8%AD%E7%9A%84%20Vim%20%E4%BC%9A%E6%8F%92%E5%85%A5%E4%B8%8D%E9%9C%80%E8%A6%81%E7%9A%84%20UTF-8%20%E5%AD%97%E7%AC%A6.png)
Vim
从运行时Powershell
,使用模式下的数字键盘insert
将发送以下字符:
1: ÎÞ
2: Îâ
3: Îæ
4: Îê
5: Îî
6: Îò
7: Îö
8: Îú
9: Îþ
10: ÎÚ
我怎样才能让数字键盘按钮插入各自的数字?
答案1
将以下内容添加到您的_vimrc
文件中:
:inoremap ÎÞ 1
:inoremap Îâ 2
:inoremap Îæ 3
:inoremap Îê 4
:inoremap Îî 5
:inoremap Îò 6
:inoremap Îö 7
:inoremap Îú 8
:inoremap Îþ 9
:inoremap ÎÚ 0