mirror of
https://github.com/neovim/neovim.git
synced 2025-12-12 17:42:37 +00:00
doc: Fix typo in the help for <Cmd> where lhs was used instead of rhs (#14272)
This commit is contained in:
@@ -290,7 +290,7 @@ as a special key.
|
|||||||
*<Cmd>* *:map-cmd*
|
*<Cmd>* *:map-cmd*
|
||||||
The <Cmd> pseudokey begins a "command mapping", which executes the command
|
The <Cmd> pseudokey begins a "command mapping", which executes the command
|
||||||
directly (without changing modes). Where you might use ":...<CR>" in the
|
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: >
|
Example: >
|
||||||
noremap x <Cmd>echo mode(1)<cr>
|
noremap x <Cmd>echo mode(1)<cr>
|
||||||
<
|
<
|
||||||
@@ -314,7 +314,7 @@ Note:
|
|||||||
|
|
||||||
*E5520*
|
*E5520*
|
||||||
<Cmd> commands must terminate, that is, they must be followed by <CR> in the
|
<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*
|
1.3 MAPPING AND MODES *:map-modes*
|
||||||
|
|||||||
Reference in New Issue
Block a user