Skip to content

Instantly share code, notes, and snippets.

@nametake
Last active July 14, 2017 06:08
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 nametake/269a84152292ebabee153b74885c3490 to your computer and use it in GitHub Desktop.
Save nametake/269a84152292ebabee153b74885c3490 to your computer and use it in GitHub Desktop.
karabinerのprivate.xmlファイル
<?xml version="1.0"?>
<root>
<appdef>
<appname>iTERM2</appname>
<equal>com.googlecode.iterm2</equal>
</appdef>
<appdef>
<appname>MACVIM</appname>
<equal>org.vim.MacVim</equal>
</appdef>
<item>
<name>Leave Insert Mode with EISUU (vim keybind apps)</name>
<identifier>private.vim_keybind_apps_esc_with_eisuu</identifier>
<only>iTERM2,TERMINAL,MACVIM,IntelliJ,ECLIPSE</only>
<autogen>__KeyToKey__ KeyCode::ESCAPE, KeyCode::ESCAPE, KeyCode::JIS_EISUU</autogen>
<autogen>__KeyToKey__ KeyCode::BRACKET_LEFT, VK_CONTROL, KeyCode::BRACKET_LEFT, VK_CONTROL, KeyCode::JIS_EISUU</autogen>
</item>
<item>
<name>Turn off Command+T at Termilan.app</name>
<identifier>private.turn_off_command_t_at_terminal_app</identifier>
<only>TERMINAL,iTERM2</only>
<autogen>
__KeyToKey__
KeyCode::T, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND | ModifierFlag::NONE,
KeyCode::VK_NONE,
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment