Created
June 6, 2018 02:14
-
-
Save nametake/1bb87365a9406449b1d6ba4851809daf to your computer and use it in GitHub Desktop.
Turn IME off when ESC or ^[ is pressed at vim bind application
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": "Turn IME off when ESC or ^[ is pressed at vim bind application", | |
"rules": [ | |
{ | |
"description": "Turn IME off when ESC or ^[ is pressed at vim bind application", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "escape", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "japanese_eisuu" | |
}, | |
{ | |
"key_code": "escape" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^org\\.vim\\.", | |
"^com\\.googlecode\\.iterm2$", | |
"^com\\.qvacua\\.VimR$" | |
] | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "open_bracket", | |
"modifiers": { | |
"mandatory": [ | |
"left_control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "japanese_eisuu" | |
}, | |
{ | |
"key_code": "escape" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^org\\.vim\\.", | |
"^com\\.googlecode\\.iterm2$", | |
"^com\\.qvacua\\.VimR$" | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment