1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

KarabinerでCtrl + [をEscの代わりにする設定

Posted at

表題の通りKarabinerでCtrl + [をEscの代わりにする設定です。

VSCodeでVimのキーバインドを導入した際、EscがCtrl+]に割り当てられており、キーバインドを変更してみたのですが、効果がなかったのでOSレベルでキーバインドを変更してしまいます。

~/.config/karabiner/assets/complex_modifications/vim-esc.json
{
    "title": "Change ctrl+[ to ESC",
    "rules": [{
        "description": "Change ctrl+[ key to Escape key",
        "manipulators": [{
            "type": "basic",
            "from": {
                "key_code": "open_bracket",
                "modifiers": {
                    "mandatory": ["control"]
                }
            },
            "to": [{
                "key_code": "escape"
            }]
        }]
    }]
}

上記ファイルを作成すれば自動的にComplex ModificationsのAdd Rule内に項目が出てくるのでEnableをクリックするだけです。

ちなみに環境はMac (JIS配列) + 外付けUS配列キーボードでした。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?