diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-04-18 15:36:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-18 15:36:40 +0100 |
commit | 75ab590f8504a8912ca0b8c58f6b897bb7a34f07 (patch) | |
tree | 075bd9c71cdc8ed677ae82f9594668cf3a220109 /runtime/doc/map.txt | |
parent | a929c922b1cb7c84ad1b5d1d0fc9a4f7c68ab8e0 (diff) |
Update runtime files
Diffstat (limited to 'runtime/doc/map.txt')
-rw-r--r-- | runtime/doc/map.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt index 6b9eb57968..3823a962d2 100644 --- a/runtime/doc/map.txt +++ b/runtime/doc/map.txt @@ -1,4 +1,4 @@ -*map.txt* For Vim version 8.2. Last change: 2022 Apr 03 +*map.txt* For Vim version 8.2. Last change: 2022 Apr 14 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1324,7 +1324,8 @@ underscore. Example: > could 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. But when a mapping is executed from outside of +make it local to the script (in |Vim9| script functions without a prefix are +local to the script). But when a mapping is executed from outside of the script, it doesn't know in which script the function was defined. To avoid this problem, use "<SID>" instead of "s:". The same translation is done as for mappings. This makes it possible to define a call to the function in |