From ca0b1fe1a590aa640fb20fcdfde3aeed3a0eac03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 4 Apr 2017 09:22:26 +0200 Subject: vis: add motions to move by codepoints Some people might prefer this for behavior. Except for that and debugging purposes using `ga` and `g8` it is not yet that useful. --- config.def.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'config.def.h') 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) }, -- cgit v1.2.3