aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-03-01 09:27:36 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-03-01 09:28:27 +0800
commit0cb9a577edf04c9be25c6bd97a567e75283b4530 (patch)
tree1dba3b726fb95eca8147e668eda36f0eb3a4e458 /runtime
parentcf0266fae1b24ced577dfb8673c11efd4ceb1627 (diff)
downloadrneovim-0cb9a577edf04c9be25c6bd97a567e75283b4530.tar.gz
rneovim-0cb9a577edf04c9be25c6bd97a567e75283b4530.tar.bz2
rneovim-0cb9a577edf04c9be25c6bd97a567e75283b4530.zip
docs: clarify actual behavior of <Plug>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/map.txt5
-rw-r--r--runtime/doc/vim_diff.txt7
2 files changed, 6 insertions, 6 deletions
diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt
index 8d5449da0b..8715c3231c 100644
--- a/runtime/doc/map.txt
+++ b/runtime/doc/map.txt
@@ -65,9 +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: "nore" is ignored for a mapping whose result
- starts with <Plug>. <Plug> is always remapped even if
- "nore" is used.
+ Note: A mapping whose {lhs} starts with <Plug> is
+ always applied even if mapping is disallowed.
:unm[ap] {lhs} |mapmode-nvo| *:unm* *:unmap*
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index d7a65756bf..90f56e2566 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -358,6 +358,10 @@ 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.
@@ -442,9 +446,6 @@ Working directory (Vim implemented some of these later than Nvim):
- `getcwd(-1)` is equivalent to `getcwd(-1, 0)` instead of returning the global
working directory. Use `getcwd(-1, -1)` to get the global working directory.
-Mappings:
-- |nore| is ignored for rhs <Plug> mappings. <Plug> mappings are always remapped.
-
==============================================================================
5. Missing legacy features *nvim-features-missing*