vim-patch:8.2.4498: using <Plug> with "noremap" does not work

Problem:    Using <Plug> with "noremap" does not work.
Solution:   Always remap <Plug>. (closes vim/vim#9879, closes vim/vim#9789)
1fc34225ac
This commit is contained in:
zeertzjq
2022-03-03 21:59:28 +08:00
parent 7211d8ef21
commit e8107f0748
4 changed files with 35 additions and 10 deletions

View File

@@ -65,8 +65,8 @@ modes.
where the map command applies. Disallow mapping of
{rhs}, to avoid nested and recursive mappings. Often
used to redefine a command.
Note: A mapping whose {lhs} starts with <Plug> is
always applied even if mapping is disallowed.
Note: When <Plug> appears in the {rhs} this part is
always applied even if remapping is disallowed.
:unm[ap] {lhs} |mapmode-nvo| *:unm* *:unmap*

View File

@@ -358,10 +358,6 @@ Macro/|recording| behavior
macros and 'keymap' at the same time. This also means you can use |:imap| on
the results of keys from 'keymap'.
Mappings:
- A mapping whose {lhs} starts with <Plug> is always applied even if mapping
is disallowed by |nore|.
Motion:
The |jumplist| avoids useless/phantom jumps.