(글 맨 아래 있는 최신버전을 이용하세요!)

한글을 쓰고 Esc를 눌러 노말모드로 들어오면 한글 입력상태가 되어 매우 불편합니다. 매번 한영 전환을 눌러줘야 하는 불편함이 있는데..

 

GitHub - johngrib/simple_vim_guide: simple vim guide

simple vim guide. Contribute to johngrib/simple_vim_guide development by creating an account on GitHub.

github.com

어떤 분이 깃허브에 잘 정리해주셨습니다

저는 Karabiner-Elements에 프리셋을 추가하도록 해보겠습니다

{
  "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"
              }
            },
            {
              "key_code": "escape"
            }
          ],
          "conditions": [ 
            { 
              "type": "frontmost_application_if",
              "bundle_identifiers": [
                "^com\\.apple\\.Terminal$",
                "^com\\.googlecode\\.iterm2$",
                "^co\\.zeit\\.hyperterm$",
                "^co\\.zeit\\.hyper$",
                "^io\\.alacritty$",
                "^net\\.kovidgoyal\\.kitty$" 
              ]
            }
          ]
        }
      ]
    }
  ]
}

~/.config/karabiner/assets/complex_modifications/escape_to_en.json 파일을 추가해주시고요

Karabiner-Elements 설정에서 "Complex Modification" - "Add rule" 눌러서 해당 rule을 추가해주면 끝입니다

정말 편리하네요 ~.~

 

+ 2022. 9. 28.

위 방법은 다 좋은데 문제가.. IntelliJ 등에서 빔 키맵을 쓰면 동작을 안하네요 ;;

그래서 더 좋은 방법을 들고왔습니다

 

 

Karabiner-Elements complex_modifications rules

 

ke-complex-modifications.pqrs.org

1. Karabiner-Elements predefined rule 사이트에 들어갑니다

 

esc를 검색하면 중간에 "For Vim User Esc to en_US/ABC IME"가 있습니다.

 

제 IME는 ABC로 돼있네요.

아무튼 "Import to Karabiner-Elements"를 눌러줍니다

 

여기서 ESC to ABC를 enable 시켜줍니다.

그럼 정말 끝입니다. 이제 intellij, vscode 등에서 빔 키맵을 쓰더라도 esc를 누르면 영어 키보드로 돌아갑니다!

반응형