Skip to content

Instantly share code, notes, and snippets.

@doortts
Last active April 29, 2021 14:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doortts/3eb501469a9308ed8500f699b5aaed22 to your computer and use it in GitHub Desktop.
Save doortts/3eb501469a9308ed8500f699b5aaed22 to your computer and use it in GitHub Desktop.
vim 이나 IdeaVim 에서 esc 누를 때 영문으로 IME 변경하는 Rule (Mac + Karabiner)
// ~/.config/karabiner/assets/complex_modifications/escape_to_en.json 에 파일 위치시킴
// Complex modifications 에서 위 규칙 추가
// bundle_identifiers 는 Karabiner-EventViewer 를 이용해서 찾는다
//
// See: https://github.com/johngrib/simple_vim_guide/blob/master/md/with_korean.md
{
"title": "Convert to en when ESC",
"rules": [
{
"description":"Convert to en when ESC",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "escape"
}
],
"to_after_key_up": [
{
"select_input_source": {
"language": "en"
}
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.apple\\.Terminal$",
"^com\\.googlecode\\.iterm2$",
"^co\\.zeit\\.hyperterm$",
"^co\\.zeit\\.hyper$",
"^io\\.alacritty$",
"^com\\.jetbrains\\.goland$",
"^com\\.jetbrains\\.intellij$",
"^com\\.jetbrains\\.webstorm$"
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment