MacVim,将Alt键重新映射为Ctrl键 [英] MacVim, remapping Alt-key as Ctrl-key

查看:515
本文介绍了MacVim,将Alt键重新映射为Ctrl键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是MacVim用户,我想知道是否可以使 Alt - Option 键的行为像 Ctrl 键.

I am a MacVim user, and I would like to know if it's possible to make the Alt-Option key behave as a Ctrl key.

感谢您的时间.

推荐答案

我在MacVim中找不到解决方法,但是 KeyRemap4Macbook 可以达到目的.它是一个FANTASTIC软件,文档非常出色,在困难的映射情况下,我建议所有人使用. 它允许您在可以从应用程序内部打开的xml文件中为每个应用程序自定义映射.绝对是poka-yoke. 这是我在private.xml中针对我的情况写的:

I couldn't find a way of doing it inside MacVim, but KeyRemap4Macbook did the trick. It is a FANTASTIC piece of software, the documentation is just excellent, I recommend it to everybody in difficult mapping situations. It allows you to customize mappings for each app, in an xml file that you can open from inside the app. It's absolutely poka-yoke. This is what I wrote in private.xml, for my situation:

<appdef>
<appname>MacVim</appname>
<equal>org.vim.MacVim</equal>
</appdef>


<item>
<name>Change Right Option key to Control</name>
<identifier>private.remap_rightOption_to_control</identifier>
    <only>MacVim</only>
<autogen>__KeyToKey__ KeyCode::OPTION_R, KeyCode::CONTROL_R</autogen>
</item>

问题解决了!

这篇关于MacVim,将Alt键重新映射为Ctrl键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆