Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?xml version="1.0"?>
<root>
<item>
<name>Control/Escape</name>
<appdef>
<appname>MACVIM</appname>
<equal>org.vim.MacVim</equal>
</appdef>
<appdef>
<appname>TERMINAL</appname>
<equal>org.apple.Terminal</equal>
</appdef>
<item>
<name>Control_L to Escape in vi</name>
<appendix>When in vi (MacVim or Terminal), bare control becomes escape</appendix>
<appendix>When pressed alone, Control_L types Escape</appendix>
<appendix>When used with other keys, it's normal Control.</appendix>
<identifier>remap.programmer.control_escape</identifier>
<only>MACVIM, TERMINAL</only>
<modifier_not>
ModifierFlag::COMMAND_L, ModifierFlag::COMMAND_R,
ModifierFlag::SHIFT_L, ModifierFlag::SHIFT_R,
ModifierFlag::FN,
ModifierFlag::OPTION_L, ModifierFlag::OPTION_R,
</modifier_not>
<!-- This is the basic mapping. -->
<autogen>
__KeyOverlaidModifier__
KeyCode::CONTROL_L,
KeyCode::CONTROL_L,
KeyCode::ESCAPE
</autogen>
</item>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment