diff --git a/README.asciidoc b/README.asciidoc index f07cca40..b789c889 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -635,8 +635,8 @@ use `n` followed by `,`, in order to remove a selection, use ``. contains a match for this regex. Using `` you can keep the selections not containing a match. -`C` copies the current selection to the next line (or lines if a count is given) -`` does the same to previous lines. +`C` duplicates selections on the lines that follow them. +`` does the same but on the preceding lines. `$` allows you to enter a shell command and pipe each selection to it. Selections whose shell command returns 0 will be kept, other will be dropped. diff --git a/doc/pages/keys.asciidoc b/doc/pages/keys.asciidoc index 73f0e432..2574a8e2 100644 --- a/doc/pages/keys.asciidoc +++ b/doc/pages/keys.asciidoc @@ -570,10 +570,10 @@ to skim through the jump list using: select first and last characters of each selection *C*:: - copy the main selection to the next line + duplicate selections on the lines that follow them **:: - copy the main selection to the previous line + duplicate selections on the lines that precede them *,*:: clear selections to only keep the main one diff --git a/src/normal.cc b/src/normal.cc index 0f5c1c2f..12843565 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -2364,8 +2364,8 @@ static constexpr HashMap { {'_'}, {"trim selections", trim_selections} }, - { {'C'}, {"copy selection on next lines", copy_selections_on_next_lines} }, - { {alt('C')}, {"copy selection on previous lines", copy_selections_on_next_lines} }, + { {'C'}, {"duplicate selections on the lines that follow them.", copy_selections_on_next_lines} }, + { {alt('C')}, {"duplicate selections on the lines that precede them.", copy_selections_on_next_lines} }, { {Key::Space}, {"user mappings", exec_user_mappings} },