Skip to content

Instantly share code, notes, and snippets.

@nametake
Created June 6, 2018 02:14
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/1bb87365a9406449b1d6ba4851809daf to your computer and use it in GitHub Desktop.
Save nametake/1bb87365a9406449b1d6ba4851809daf to your computer and use it in GitHub Desktop.
Turn IME off when ESC or ^[ is pressed at vim bind application
{
"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