Skip to content

Instantly share code, notes, and snippets.

@hyuki0000
Created July 10, 2013 15:08
Show Gist options
  • Save hyuki0000/5967090 to your computer and use it in GitHub Desktop.
Save hyuki0000/5967090 to your computer and use it in GitHub Desktop.
private.xml for KeyRemap4MacBook to remap ESC -> ESC + EISUU and ^[ to ^[ EISUU. This is to make Kotoeri disable in vim's normal mode. Based on http://r7kamura.hatenablog.com/entry/20110217/1297910068
<?xml version="1.0"?>
<root>
<list>
<item>
<name>LeaveInsMode with EISUU(Terminal)</name>
<identifier>private.app_terminal_esc_with_eisuu</identifier>
<only>TERMINAL</only>
<autogen>--KeyToKey-- KeyCode::ESCAPE, KeyCode::ESCAPE, KeyCode::JIS_EISUU</autogen>
<autogen>--KeyToKey-- KeyCode::JIS_BRACKET_LEFT, VK_CONTROL, KeyCode::JIS_BRACKET_LEFT, VK_CONTROL, KeyCode::JIS_EISUU</autogen>
</item>
</list>
</root>
@hyuki0000
Copy link
Author

http://r7kamura.hatenablog.com/entry/20110217/1297910068 との違いは、CTRL+Cはいじっていないことと、ESCだけでなくCTRL+[も変更しているところ。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment