diff options
Diffstat (limited to 'runtime/doc/vim9.txt')
-rw-r--r-- | runtime/doc/vim9.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt index 346189b05d..a1d106d9bd 100644 --- a/runtime/doc/vim9.txt +++ b/runtime/doc/vim9.txt @@ -1,4 +1,4 @@ -*vim9.txt* For Vim version 8.2. Last change: 2021 Aug 23 +*vim9.txt* For Vim version 8.2. Last change: 2021 Sep 08 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1416,11 +1416,10 @@ In case the name is ambiguous, another name can be specified: > To import all exported items under a specific identifier: > import * as That from 'thatscript.vim' -{not implemented yet: using "This as That"} - Then you can use "That.EXPORTED_CONST", "That.someValue", etc. You are free to choose the name "That", but it is highly recommended to use the name of the -script file to avoid confusion. +script file to avoid confusion. Also avoid command names, because the name +will shadow them. `:import` can also be used in legacy Vim script. The imported items still become script-local, even when the "s:" prefix is not given. |