Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save F1LT3R/a4e22a4ec70c90c17d09606f40f2ee9d to your computer and use it in GitHub Desktop.
Save F1LT3R/a4e22a4ec70c90c17d09606f40f2ee9d to your computer and use it in GitHub Desktop.
Karabiner-Elements - Caps Move Vim - complex_modifications rules
<a href="karabiner://karabiner/assets/complex_modifications/import?url=https%253A%252F%252Fpqrs.org%252Fosx%252Fkarabiner%252Fcomplex_modifications%252Fjson%252Fcaps_and_return_to_ctrl.json">Add to Karabiner</a>
{
"title": "Caps Move Vim",
"rules": [
{
"description": "Change Capslock + H/J/K/L to Arrow Keys",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "i",
"modifiers": {
"mandatory": ["caps_lock"],
"optional": ["any"]
}
},
"to": [{"key_code": "up_arrow"}]
},
{
"type": "basic",
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["caps_lock"],
"optional": ["any"]
}
},
"to": [{"key_code": "left_arrow"}]
},
{
"type": "basic",
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["caps_lock"],
"optional": ["any"]
}
},
"to": [{"key_code": "down_arrow"}]
},
{
"type": "basic",
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["caps_lock"],
"optional": ["any"]
}
},
"to": [{"key_code": "right_arrow"}]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment