aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-04-04 09:22:26 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-04-04 09:31:49 +0200
commitca0b1fe1a590aa640fb20fcdfde3aeed3a0eac03 (patch)
tree3ed66754cf50cc2c38a93179f61e397f67778bb1 /config.def.h
parentdd730eb1feb46e9688350b0ff401694653f90554 (diff)
downloadvis-ca0b1fe1a590aa640fb20fcdfde3aeed3a0eac03.tar.gz
vis-ca0b1fe1a590aa640fb20fcdfde3aeed3a0eac03.tar.xz
vis: add motions to move by codepoints
Some people might prefer this for <Backspace> behavior. Except for that and debugging purposes using `ga` and `g8` it is not yet that useful.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index 1fba42a..ffc9577 100644
--- a/config.def.h
+++ b/config.def.h
@@ -62,8 +62,10 @@ 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) },
+ { "gH", ACTION(CURSOR_BYTE_LEFT) },
+ { "gL", ACTION(CURSOR_BYTE_RIGHT) },
+ { "gh", ACTION(CURSOR_CODEPOINT_PREV) },
+ { "gl", ACTION(CURSOR_CODEPOINT_NEXT) },
{ "g0", ACTION(CURSOR_SCREEN_LINE_BEGIN) },
{ "g_", ACTION(CURSOR_LINE_FINISH) },
{ "G", ACTION(CURSOR_LINE_LAST) },