From ef268e029d75ee58fb5a78c203278dfb98d212c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 9 Nov 2016 14:50:43 +0100 Subject: vis: improve `r` in normal and replace mode In normal mode `r` was previously implemented as `R`. However this does not work when the replacement key is `` to insert a new line, because in replace mode new lines are not overwritten. The count is now also respected. Also properly support `r` in visual mode where before it was aliased to `c`. Fix #190 --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 150551b..1ae941f 100644 --- a/config.def.h +++ b/config.def.h @@ -288,7 +288,7 @@ static const KeyBinding bindings_visual[] = { { "J", ACTION(JOIN_LINES) }, { "gJ", ACTION(JOIN_LINES_TRIM) }, { "o", ACTION(SELECTION_FLIP) }, - { "r", ALIAS("c") }, + { "r", ACTION(REPLACE_CHAR) }, { "s", ALIAS("c") }, { "", ACTION(CURSORS_ALIGN_INDENT_RIGHT) }, { "", ACTION(CURSORS_ALIGN_INDENT_LEFT) }, -- cgit v1.2.3