From 807f4ea3e29030ed6379e5c866974d57458c2e42 Mon Sep 17 00:00:00 2001 From: Ryan Chipman Date: Tue, 23 Jun 2015 14:23:51 -0400 Subject: Hook up :-commands & keybindings for earlier/later --- config.def.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 1024b3f..09ba706 100644 --- a/config.def.h +++ b/config.def.h @@ -67,6 +67,8 @@ static Command cmds[] = { { { "wq", }, cmd_wq, CMD_OPT_FORCE }, { { "write", "w" }, cmd_write, CMD_OPT_FORCE }, { { "xit", }, cmd_xit, CMD_OPT_FORCE }, + { { "earlier" }, cmd_earlier, CMD_OPT_NONE }, + { { "later" }, cmd_later, CMD_OPT_NONE }, { { "!", }, cmd_filter, CMD_OPT_NONE }, { /* array terminator */ }, }; @@ -407,6 +409,8 @@ static KeyBinding vis_mode_normal[] = { { { NONE('X') }, delete, { .i = MOVE_CHAR_PREV } }, { { NONE('u') }, undo, { NULL } }, { { CONTROL('R') }, redo, { NULL } }, + { { NONE('g'), NONE('+') }, later, { NULL } }, + { { NONE('g'), NONE('-') }, earlier, { NULL } }, { { CONTROL('L') }, call, { .f = editor_draw } }, { { NONE(':') }, prompt_cmd, { .s = "" } }, { { NONE('Z'), NONE('Z') }, cmd, { .s = "wq" } }, -- cgit v1.2.3