Created
March 27, 2020 18:13
-
-
Save calebporzio/87e065941bf88fb0d49e5d4061f91e8f to your computer and use it in GitHub Desktop.
A backup of the ideal vim mode karabiner plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Caleb's Vim Mode", | |
"author": "Caleb Porzio(calebporzio.com)", | |
"rules": [ | |
{ | |
"description": "Vim Mode [D as Trigger Key]", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "d", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "vi_mode", | |
"value": 1 | |
} | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "vi_mode", | |
"value": 0 | |
} | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "d" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
}, | |
{ | |
"name": "vi_visual_mode", | |
"type": "variable_if", | |
"value": 0 | |
} | |
], | |
"from": { | |
"key_code": "h", | |
"modifiers": { | |
"optional": [ | |
"caps_lock", | |
"command", | |
"option", | |
"shift", | |
"fn" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
}, | |
{ | |
"name": "vi_visual_mode", | |
"type": "variable_if", | |
"value": 0 | |
} | |
], | |
"from": { | |
"key_code": "j", | |
"modifiers": { | |
"optional": [ | |
"caps_lock", | |
"command", | |
"option", | |
"shift", | |
"fn" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
}, | |
{ | |
"name": "vi_visual_mode", | |
"type": "variable_if", | |
"value": 0 | |
} | |
], | |
"from": { | |
"key_code": "k", | |
"modifiers": { | |
"optional": [ | |
"caps_lock", | |
"command", | |
"option", | |
"shift", | |
"fn" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
}, | |
{ | |
"name": "vi_visual_mode", | |
"type": "variable_if", | |
"value": 0 | |
} | |
], | |
"from": { | |
"key_code": "l", | |
"modifiers": { | |
"optional": [ | |
"caps_lock", | |
"command", | |
"option", | |
"shift", | |
"fn" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
}, | |
{ | |
"name": "vi_visual_mode", | |
"type": "variable_if", | |
"value": 0 | |
} | |
], | |
"from": { | |
"key_code": "f", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "fn" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
}, | |
{ | |
"name": "vi_visual_mode", | |
"type": "variable_if", | |
"value": 0 | |
} | |
], | |
"from": { | |
"key_code": "0", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "a", | |
"modifiers": [ | |
"left_control" | |
] | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
}, | |
{ | |
"name": "vi_visual_mode", | |
"type": "variable_if", | |
"value": 0 | |
} | |
], | |
"from": { | |
"key_code": "4", | |
"modifiers": { | |
"optional": [ | |
"caps_lock", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "e", | |
"modifiers": [ | |
"left_control" | |
] | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "v", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "vi_visual_mode", | |
"value": 1 | |
} | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "vi_visual_mode", | |
"value": 0 | |
} | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_visual_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "h", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_visual_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "j", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_visual_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "k", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_visual_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "l", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"left_shift" | |
] | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_visual_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "0", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"left_shift", | |
"left_command" | |
] | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_visual_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "4", | |
"modifiers": { | |
"optional": [ | |
"caps_lock", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"left_shift", | |
"left_command" | |
] | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_visual_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "b", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"left_shift", | |
"left_option" | |
] | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_visual_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "w", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"left_shift", | |
"left_option" | |
] | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_visual_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "open_bracket", | |
"modifiers": { | |
"optional": [ | |
"caps_lock", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow", | |
"modifiers": [ | |
"left_shift", | |
"left_option" | |
] | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_visual_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "close_bracket", | |
"modifiers": { | |
"optional": [ | |
"caps_lock", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow", | |
"modifiers": [ | |
"left_shift", | |
"left_option" | |
] | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_visual_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"any": "key_code", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "return_or_enter", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "return_or_enter" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "spacebar", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "spacebar" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "tab", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "tab" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "hyphen", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "hyphen" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "equal_sign", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "equal_sign" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "open_bracket", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "open_bracket" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "close_bracket", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "close_bracket" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "backslash", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "backslash" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "non_us_pound", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "non_us_pound" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "semicolon", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "semicolon" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "quote", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "quote" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "grave_accent_and_tilde", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "grave_accent_and_tilde" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "comma", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "comma" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "period", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "period" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "slash", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "slash" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "non_us_backslash", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "non_us_backslash" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "1", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "1" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "2", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "2" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "3", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "3" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "5", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "5" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "6", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "6" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "7", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "7" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "8", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "8" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "9", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "9" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "a", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "a" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "b", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "b" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "c", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "c" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "e", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "e" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "g", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "g" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "i", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "i" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "m", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "m" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "n", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "n" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "o", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "o" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "p", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "p" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "q", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "q" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "r", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "r" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "s", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "s" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "t", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "t" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "u", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "u" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "w", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "w" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "x", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "x" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "y", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "y" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"name": "vi_mode", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "z", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "d" | |
}, | |
{ | |
"key_code": "z" | |
}, | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment