aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorRyan Chipman <rchipman@mit.edu>2015-06-23 14:23:51 -0400
committerMarc André Tanner <mat@brain-dump.org>2015-06-27 10:11:12 +0200
commit807f4ea3e29030ed6379e5c866974d57458c2e42 (patch)
tree7e4f40b259706852bb474a551a5bff26d2d7d81c /config.def.h
parent404cc487a8f817fb3b5da1366aa4b78e05fab3ae (diff)
downloadvis-807f4ea3e29030ed6379e5c866974d57458c2e42.tar.gz
vis-807f4ea3e29030ed6379e5c866974d57458c2e42.tar.xz
Hook up :-commands & keybindings for earlier/later
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h4
1 files changed, 4 insertions, 0 deletions
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" } },