-
Notifications
You must be signed in to change notification settings - Fork 0
/
karabiner.xml
40 lines (39 loc) · 2.26 KB
/
karabiner.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0"?>
<root>
<replacementdef>
<replacementname>SIMPLE_VI_MODE_EXTRA</replacementname>
<replacementvalue>
<![CDATA[
<!--
in slow vi mode
1. map D to fast vi mode
2. A is shift for selecting text
3. ;/: button is cut
4. P is paste
5. N is backspace
in fast vi mode
1. H/L move forward /back words
1. J/K move up/down fast
2. N is delete to beg of word
-->
<autogen> __KeyToKey__ KeyCode::D, KeyCode::VK_CONFIG_SYNC_KEYDOWNUP_notsave_fast_vimode </autogen>
<autogen> __KeyToKey__ KeyCode::A, KeyCode::SHIFT_L </autogen>
<autogen> __KeyToKey__ KeyCode::P, KeyCode::V, ModifierFlag::COMMAND_L </autogen>
<autogen> __KeyToKey__
KeyCode::SEMICOLON, ModifierFlag::SHIFT_L, KeyCode::X, ModifierFlag::COMMAND_L </autogen>
<autogen> __KeyToKey__ KeyCode::SEMICOLON, KeyCode::X, ModifierFlag::COMMAND_L </autogen>
<autogen> __KeyToKey__ KeyCode::N, KeyCode::DELETE, </autogen>
<autogen> __KeyToKey__ KeyCode::M, KeyCode::FORWARD_DELETE, </autogen>
]]>
</replacementvalue>
</replacementdef>
<item>
<identifier vk_config="true">notsave.fast_vimode</identifier>
<autogen>__KeyToKey__ KeyCode::H, KeyCode::CURSOR_LEFT, ModifierFlag::OPTION_L, DelayUntilRepeat::RawValue::120, KeyRepeat::RawValue::60</autogen>
<autogen>__KeyToKey__ KeyCode::L, KeyCode::CURSOR_RIGHT, ModifierFlag::OPTION_L, DelayUntilRepeat::RawValue::120, KeyRepeat::RawValue::60</autogen>
<autogen>__KeyToKey__ KeyCode::J, KeyCode::CURSOR_DOWN, DelayUntilRepeat::RawValue::40, KeyRepeat::RawValue::30</autogen>
<autogen>__KeyToKey__ KeyCode::K, KeyCode::CURSOR_UP, DelayUntilRepeat::RawValue::40, KeyRepeat::RawValue::30</autogen>
<autogen>__KeyToKey__ KeyCode::N, KeyCode::DELETE, ModifierFlag::OPTION_L, DelayUntilRepeat::RawValue::150, KeyRepeat::RawValue::60</autogen>
<autogen>__KeyToKey__ KeyCode::M, KeyCode::FORWARD_DELETE, ModifierFlag::OPTION_L, DelayUntilRepeat::RawValue::150, KeyRepeat::RawValue::60</autogen>
</item>
</root>