Skip to content

Instantly share code, notes, and snippets.

@pasela
Created September 3, 2013 06:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pasela/6420286 to your computer and use it in GitHub Desktop.
Save pasela/6420286 to your computer and use it in GitHub Desktop.
[KeyRemap4MacBook] LeaveInsMode with EISUU(vim keybind apps)
<?xml version="1.0"?>
<root>
<symbol_map type="KeyCode" name="[" value="0x1e" />
<appdef>
<appname>iTERM2</appname>
<equal>com.googlecode.iterm2</equal>
</appdef>
<list>
<item>
<name>LeaveInsMode with EISUU(vim keybind apps)</name>
<identifier>private.vim_keybind_apps_esc_with_eisuu</identifier>
<only>iTERM2,TERMINAL</only>
<autogen>--KeyToKey-- KeyCode::ESCAPE, KeyCode::ESCAPE, KeyCode::JIS_EISUU</autogen>
<autogen>--KeyToKey-- KeyCode::[, VK_CONTROL, KeyCode::[, VK_CONTROL, KeyCode::JIS_EISUU</autogen>
<autogen>--KeyToKey-- KeyCode::C, VK_CONTROL, KeyCode::C, VK_CONTROL, KeyCode::JIS_EISUU</autogen>
</item>
</list>
</root>
@pasela
Copy link
Author

pasela commented Sep 3, 2013

ターミナルでEscとかC-[した時にIMをオフにするやつ

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