doc: Fix typo in the help for <Cmd> where lhs was used instead of rhs (#14272)

This commit is contained in:
Kevin Svetlitski
2021-04-01 20:50:02 -05:00
committed by GitHub
parent a03be1e44f
commit da31f1c7dd

View File

@@ -290,7 +290,7 @@ as a special key.
*<Cmd>* *:map-cmd*
The <Cmd> pseudokey begins a "command mapping", which executes the command
directly (without changing modes). Where you might use ":...<CR>" in the
{lhs} of a mapping, you can instead use "<Cmd>...<CR>".
{rhs} of a mapping, you can instead use "<Cmd>...<CR>".
Example: >
noremap x <Cmd>echo mode(1)<cr>
<
@@ -314,7 +314,7 @@ Note:
*E5520*
<Cmd> commands must terminate, that is, they must be followed by <CR> in the
{lhs} of the mapping definition. |Command-line| mode is never entered.
{rhs} of the mapping definition. |Command-line| mode is never entered.
1.3 MAPPING AND MODES *:map-modes*