From f917402f89f9f0c26e194330577e2e3c58b52523 Mon Sep 17 00:00:00 2001 From: Delapouite Date: Sun, 9 Jul 2017 12:00:28 +0200 Subject: [PATCH] Docs: add missing key and fix info message --- README.asciidoc | 1 + doc/manpages/keys.asciidoc | 3 +++ src/normal.cc | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.asciidoc b/README.asciidoc index 9754faeb..64786724 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -421,6 +421,7 @@ Changes * ``: paste all before current selection begin, and select each pasted string. * `R`: replace current selection with yanked text + * ``: replace current selection with every yanked text * `r`: replace each character with the next entered one diff --git a/doc/manpages/keys.asciidoc b/doc/manpages/keys.asciidoc index 6954a028..60a708c1 100644 --- a/doc/manpages/keys.asciidoc +++ b/doc/manpages/keys.asciidoc @@ -254,6 +254,9 @@ Changes *R*:: replace current selection with yanked text +**:: + replace current selection with every yanked text + *r*:: replace each character with the next entered one diff --git a/src/normal.cc b/src/normal.cc index 37b71d10..c068831e 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1916,7 +1916,7 @@ const HashMap keymap{ { {alt('p')}, {"paste every yanked selection after selected text", paste_all} }, { {alt('P')}, {"paste every yanked selection before selected text", paste_all} }, { {'R'}, {"replace selected text with yanked text", paste} }, - { {alt('R')}, {"replace selected text with yanked text", paste_all} }, + { {alt('R')}, {"replace selected text with every yanked text", paste_all} }, { {'s'}, {"select regex matches in selected text", select_regex} }, { {'S'}, {"split selected text on regex matches", split_regex} },