简体   繁体   English

如何在 vim 上的 Mac 键盘的 JIS 布局中常见 map 「英数」或「かな」键?

[英]How to map 「英数」 or 「かな」 key common in the JIS layout of Mac keyboards on vim?

Okay, please here me out on this -- this question is not about using these keys.好的,请告诉我这个问题 - 这个问题与使用这些键无关。

Macs come with a JIS keyboard layout that has the following keys 「英数」 and 「かな」 that is used to switch between Japanese and English input. Mac 配备 JIS 键盘布局,具有以下键“英数”和“かな”,用于在日语和英语输入之间切换。 (image below) (下图)

JIS 布局

I would like to use these two keys to toggle between insert, visual, and normal mode.我想使用这两个键在插入、视觉和正常模式之间切换。 I tried pressing the 英数 and the かな key with Ctr+V in insert mode, but nothing was showing up so I have no clue about what vim sees when these keys are pressed.我尝试在插入模式下使用 Ctr+V 按下英数和 かな 键,但没有任何显示,所以我不知道 vim 在按下这些键时会看到什么。

Does anyone know how I can map these two keys to visual/insert mode?有谁知道我如何将 map 这两个键设置为可视/插入模式? If not, I would really appreciate some guidance on at least figuring out what vim sees when these two keys are entered.如果没有,我真的很感激一些指导,至少弄清楚 vim 在输入这两个键时会看到什么。

my recommendation is using Karabiner我的建议是使用 Karabiner
https://karabiner-elements.pqrs.org
You can then map those keys to any key you want.然后,您可以将这些键 map 转换为您想要的任何键。 The karabiner-eventviewer can help you find the pressed key easily. karabiner-eventviewer 可以帮助您轻松找到按下的键。 I had a JIS keyboard and map the 英数 to command so my left thumb does not need to stretch too much.我有一个 JIS 键盘和 map 英数命令所以我的左手拇指不需要伸展太多。 Good luck祝你好运

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM