aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-09 14:50:43 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-09 14:58:31 +0100
commitef268e029d75ee58fb5a78c203278dfb98d212c5 (patch)
tree59297514906fdbdc9af25fd7f56a43a55d82d3c6 /config.def.h
parentff45c36bab3952bb633dd0b8e6c4c90dab9f7e2a (diff)
downloadvis-ef268e029d75ee58fb5a78c203278dfb98d212c5.tar.gz
vis-ef268e029d75ee58fb5a78c203278dfb98d212c5.tar.xz
vis: improve `r` in normal and replace mode
In normal mode `r<key>` was previously implemented as `R<key><Escape>`. However this does not work when the replacement key is `<Enter>` 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
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h2
1 files changed, 1 insertions, 1 deletions
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") },
{ "<S-Tab>", ACTION(CURSORS_ALIGN_INDENT_RIGHT) },
{ "<Tab>", ACTION(CURSORS_ALIGN_INDENT_LEFT) },