From b9e8d20523a7bf05e02468efd97bbcf90f18a1e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 20 Jan 2016 12:56:38 +0100 Subject: vis: make in insert/replace mode move to the end of line The behaviour of vs $ in various modes may still be inconsistent, but at least it can now be configured via key bindings. --- config.def.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index a395bcf..30e17bb 100644 --- a/config.def.h +++ b/config.def.h @@ -38,7 +38,7 @@ static const KeyBinding bindings_motions[] = { { "g", ALIAS("gj") }, { "^", ACTION(CURSOR_LINE_START) }, { "g_", ACTION(CURSOR_LINE_FINISH) }, - { "$", ACTION(CURSOR_LINE_END) }, + { "$", ACTION(CURSOR_LINE_LASTCHAR) }, { "%", ACTION(CURSOR_BRACKET_MATCH) }, { "b", ACTION(CURSOR_WORD_START_PREV) }, { "B", ACTION(CURSOR_LONGWORD_START_PREV) }, @@ -232,6 +232,7 @@ static const KeyBinding bindings_normal[] = { { "gp", ACTION(PUT_AFTER_END) }, { "gP", ACTION(PUT_BEFORE_END) }, { "~", ALIAS("l") }, + { "", ALIAS("$") }, { 0 /* empty last element, array terminator */ }, }; -- cgit v1.2.3