summaryrefslogtreecommitdiff
path: root/users/rverst/rverst.c
diff options
context:
space:
mode:
Diffstat (limited to 'users/rverst/rverst.c')
-rw-r--r--users/rverst/rverst.c33
1 files changed, 30 insertions, 3 deletions
diff --git a/users/rverst/rverst.c b/users/rverst/rverst.c
index 23391caa6a..2cbffbc478 100644
--- a/users/rverst/rverst.c
+++ b/users/rverst/rverst.c
@@ -39,9 +39,7 @@ uint8_t get_mode(void) {
}
void set_mode(uint8_t mode, bool save) {
- if (mode == get_mode()) {
- return;
- }
+ dprintf("set_mode - mode: %d, save: %s\n", mode, save ? "true" : "false");
switch_mode(mode);
if (mode > 7) {
@@ -392,6 +390,35 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
send_unicode_string("³");
}
return false;
+ // vim equal split
+ case RV_SEQU:
+ tap_code16(C(KC_W));
+ tap_code(KC_EQL);
+ return false;
+ // vim vertical split increase
+ case RV_VINC:
+ tap_code16(C(KC_W));
+ tap_code(KC_4);
+ tap_code16(S(KC_DOT));
+ return false;
+ // vim vertical split decrease
+ case RV_VDEC:
+ tap_code16(C(KC_W));
+ tap_code(KC_4);
+ tap_code16(S(KC_COMM));
+ return false;
+ // vim split increase
+ case RV_SINC:
+ tap_code16(C(KC_W));
+ tap_code(KC_4);
+ tap_code16(S(KC_EQL));
+ return false;
+ // vim split decrease
+ case RV_SDEC:
+ tap_code16(C(KC_W));
+ tap_code(KC_4);
+ tap_code(KC_MINS);
+ return false;
}
return true;