summaryrefslogtreecommitdiffstats
path: root/runtime/doc/map.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-02-27 15:49:53 +0000
committerBram Moolenaar <Bram@vim.org>2023-02-27 15:49:53 +0000
commitdd60c365cd2630794be84d63c4fe287124a30b97 (patch)
tree560fe950798f2987865d532ebe0e06e60b78f3cc /runtime/doc/map.txt
parent341f3876b34f47fdb1c82b0ad9bae448be73a220 (diff)
Update runtime files
Diffstat (limited to 'runtime/doc/map.txt')
-rw-r--r--runtime/doc/map.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt
index ef3126193c..905f9adbef 100644
--- a/runtime/doc/map.txt
+++ b/runtime/doc/map.txt
@@ -1,4 +1,4 @@
-*map.txt* For Vim version 9.0. Last change: 2023 Feb 18
+*map.txt* For Vim version 9.0. Last change: 2023 Feb 27
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1073,7 +1073,7 @@ translated). The meaning of {value}:
On protocol is used
Disabled protocol was used but expected to have been disabled
by 't_TE'
- Cleared protocol expected to have beeen disabled by 't_TE',
+ Cleared protocol expected to have been disabled by 't_TE',
previous state is unknown
@@ -1421,12 +1421,13 @@ this, they can be made local to the script.
*<SID>* *<SNR>* *E81*
The string "<SID>" can be used in a mapping or menu. This requires that the
-'<' flag is not present in 'cpoptions'.
+'<' flag is not present in 'cpoptions'. This is useful if you have a
+script-local function that you want to call from a mapping in the same script.
When executing the map command, Vim will replace "<SID>" with the special
key code <SNR>, followed by a number that's unique for the script, and an
underscore. Example: >
:map <SID>Add
-could define a mapping "<SNR>23_Add".
+would define a mapping "<SNR>23_Add".
When defining a function in a script, "s:" can be prepended to the name to
make it local to the script (in |Vim9| script functions without a prefix are