Karabiner 增加 ctrl + [ 映射Esc键

vim ~/.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"
            }]
        }]
    }]
}

保存后,进入karabiner程序界面
Complex Modifications -> Add Rule
Enable
Karabiner 增加 ctrl + [ 映射Esc键_第1张图片

你可能感兴趣的:(杂)