Merge remote-tracking branch 'Delapouite/alt-r'

This commit is contained in:
Maxime Coste 2017-07-09 22:29:05 +09:00
commit c38dc9a37b
3 changed files with 5 additions and 1 deletions

View File

@ -421,6 +421,7 @@ Changes
* `<a-P>`: paste all before current selection begin, and
select each pasted string.
* `R`: replace current selection with yanked text
* `<a-R>`: replace current selection with every yanked text
* `r`: replace each character with the next entered one

View File

@ -254,6 +254,9 @@ Changes
*R*::
replace current selection with yanked text
*<a-R>*::
replace current selection with every yanked text
*r*::
replace each character with the next entered one

View File

@ -1916,7 +1916,7 @@ const HashMap<Key, NormalCmd> keymap{
{ {alt('p')}, {"paste every yanked selection after selected text", paste_all<InsertMode::Append>} },
{ {alt('P')}, {"paste every yanked selection before selected text", paste_all<InsertMode::Insert>} },
{ {'R'}, {"replace selected text with yanked text", paste<InsertMode::Replace>} },
{ {alt('R')}, {"replace selected text with yanked text", paste_all<InsertMode::Replace>} },
{ {alt('R')}, {"replace selected text with every yanked text", paste_all<InsertMode::Replace>} },
{ {'s'}, {"select regex matches in selected text", select_regex} },
{ {'S'}, {"split selected text on regex matches", split_regex} },