Skip to content

Instantly share code, notes, and snippets.

@ishideo
Created October 20, 2016 01:35
Show Gist options
  • Save ishideo/4638969a521ac52604c5718f1e65e411 to your computer and use it in GitHub Desktop.
Save ishideo/4638969a521ac52604c5718f1e65e411 to your computer and use it in GitHub Desktop.
<?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>
<list>
<item>
<name>Leave Insert Mode with EISUU (vim keybind apps)</name>
<identifier>private.vim_keybind_apps_esc_with_eisuu</identifier>
<only>iTERM2,TERMINAL,MACVIM</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>Command + F12: Copy</name>
<identifier>private.command-f12_insert</identifier>
<autogen>
__KeyToKey__ KeyCode::F12, ModifierFlag::COMMAND_R,
KeyCode::C, ModifierFlag::COMMAND_R
</autogen>
</item>
<item>
<name>Shift + F12: Paste</name>
<identifier>private.shift-f12_paste</identifier>
<autogen>
__KeyToKey__ KeyCode::F12, ModifierFlag::SHIFT_R,
KeyCode::V, ModifierFlag::COMMAND_R
</autogen>
</item>
<item>
<name>Shift + Delete: Cut</name>
<identifier>private.shift-del_cut</identifier>
<autogen>
__KeyToKey__ KeyCode::DELETE, ModifierFlag::SHIFT_R,
KeyCode::X, ModifierFlag::COMMAND_R
</autogen>
</item>
<item>
<name>Shift + F10: Right click</name>
<identifier>private.shift-f10_right-click</identifier>
<autogen>
__KeyToKey__ KeyCode::F10, ModifierFlag::SHIFT_R,
KeyCode::VK_MOUSEKEY_BUTTON_RIGHT
</autogen>
</item>
</list>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment