Vim Cursor¶
This is an example keyboard to demonstrate the power of layers and advanced key codes. The behaviour is simple:
- By default, keys act as expected.
- When the space bar is held, keys
HJKLare remapped to move the cursor left, down, up, and right. The remapping is disabled when the space bar is released.
Layers¶
{
"layer_order": [ "base", "cursor" ],
"base": {
"enabled": true,
"keys" : [
[ "KC_H", "KC_J", "KC_K", "KC_L" ],
[ "LT(cursor,KC_SPACE,150)" ]
]
},
"cursor": {
"enabled": false,
"keys": [
[ "KC_LEFT", "KC_DOWN", "KC_UP", "KC_RIGHT" ],
[ "TRANSPARENT" ]
]
}
}
Matrix¶
{
"matrix": [
[ "KC_H", "KC_J", "KC_K", "KC_L" ],
[ "KC_SPACE" ]
]
}