aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-12-21 12:53:40 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-12-21 12:55:09 +0100
commitd7f5912eb1c044399c662329656ab0cca37a471b (patch)
tree7b3fc68e8150333c82587d786abfa8a0f38d6b6f /config.def.h
parent559ab349a05d5201b666eddb22d921c40b131bd5 (diff)
downloadvis-d7f5912eb1c044399c662329656ab0cca37a471b.tar.gz
vis-d7f5912eb1c044399c662329656ab0cca37a471b.tar.xz
vis: implement `gh` and `gl` to move by relative byte offsets
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index eb01ac9..1d08434 100644
--- a/config.def.h
+++ b/config.def.h
@@ -66,6 +66,8 @@ static const KeyBinding bindings_motions[] = {
{ "F", ACTION(TO_LEFT) },
{ "f", ACTION(TO_RIGHT) },
{ "go", ACTION(CURSOR_BYTE) },
+ { "gh", ACTION(CURSOR_BYTE_LEFT) },
+ { "gl", ACTION(CURSOR_BYTE_RIGHT) },
{ "g0", ACTION(CURSOR_SCREEN_LINE_BEGIN) },
{ "g_", ACTION(CURSOR_LINE_FINISH) },
{ "G", ACTION(CURSOR_LINE_LAST) },