aboutsummaryrefslogtreecommitdiff
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 23391caa6..2cbffbc47 100644
--- a/users/rverst/rverst.c
+++ b/users/rverst/rverst.c
@@ -39,9 +39,7 @@ uint8_t get_mode(void) {
39} 39}
40 40
41void set_mode(uint8_t mode, bool save) { 41void set_mode(uint8_t mode, bool save) {
42 if (mode == get_mode()) { 42 dprintf("set_mode - mode: %d, save: %s\n", mode, save ? "true" : "false");
43 return;
44 }
45 switch_mode(mode); 43 switch_mode(mode);
46 44
47 if (mode > 7) { 45 if (mode > 7) {
@@ -392,6 +390,35 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
392 send_unicode_string("³"); 390 send_unicode_string("³");
393 } 391 }
394 return false; 392 return false;
393 // vim equal split
394 case RV_SEQU:
395 tap_code16(C(KC_W));
396 tap_code(KC_EQL);
397 return false;
398 // vim vertical split increase
399 case RV_VINC:
400 tap_code16(C(KC_W));
401 tap_code(KC_4);
402 tap_code16(S(KC_DOT));
403 return false;
404 // vim vertical split decrease
405 case RV_VDEC:
406 tap_code16(C(KC_W));
407 tap_code(KC_4);
408 tap_code16(S(KC_COMM));
409 return false;
410 // vim split increase
411 case RV_SINC:
412 tap_code16(C(KC_W));
413 tap_code(KC_4);
414 tap_code16(S(KC_EQL));
415 return false;
416 // vim split decrease
417 case RV_SDEC:
418 tap_code16(C(KC_W));
419 tap_code(KC_4);
420 tap_code(KC_MINS);
421 return false;
395 } 422 }
396 423
397 return true; 424 return true;