Mercurial > vim
diff runtime/doc/vim9.txt @ 25773:11b656e74444
Update runtime files
Commit: https://github.com/vim/vim/commit/6c391a74fe90190796ca0b0c010112948a6e75d7
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 9 21:55:11 2021 +0200
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 09 Sep 2021 22:00:10 +0200 |
parents | d4faa2c5211b |
children | 65de67669df3 |
line wrap: on
line diff
--- 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 n 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.