Skip to content

Update vim9.{txt,jax} #2056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/vim9.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*vim9.txt* For Vim バージョン 9.1. Last change: 2025 Apr 18
*vim9.txt* For Vim バージョン 9.1. Last change: 2025 Apr 27

VIMリファレンスマニュアル by Bram Moolenaar

Expand Down Expand Up @@ -2043,7 +2043,7 @@ export された項目は、別のスクリプトで import することがで

名前が ".vim" で終わらない場合は、"as name" を使用する必要があります。

vim9 script ファイルを一度 import すると、その結果はキャッシュされ、次に同じス
Vim9 script ファイルを一度 import すると、その結果はキャッシュされ、次に同じス
クリプトを import するときに使用されます。再度読み込まれることはありません。

2 つの異なる "as" 名を使用する場合も同様に、同じスクリプトを 2 回 import する
Expand All @@ -2056,7 +2056,7 @@ import 名を使用する場合、ドットと項目名は同じ行になけれ
echo that
.name # エラー!
< *import-map*
あるスクリプトから vim9 script に関数を import した場合、import した関数の前に
あるスクリプトから Vim9 script に関数を import した場合、import した関数の前に
|<SID>| を付けることで、マッピングで参照することができます: >
noremap <silent> ,a :call <SID>name.Function()<CR>

Expand Down
6 changes: 3 additions & 3 deletions en/vim9.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*vim9.txt* For Vim version 9.1. Last change: 2025 Apr 18
*vim9.txt* For Vim version 9.1. Last change: 2025 Apr 27


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -2043,7 +2043,7 @@ The script name after `import` can be:

If the name does not end in ".vim" then the use of "as name" is required.

Once a vim9 script file has been imported, the result is cached and used the
Once a Vim9 script file has been imported, the result is cached and used the
next time the same script is imported. It will not be read again.

It is not allowed to import the same script twice, also when using two
Expand All @@ -2056,7 +2056,7 @@ line, there can be no line break: >
echo that
.name # Error!
< *import-map*
When you've imported a function from one script into a vim9 script you can
When you've imported a function from one script into a Vim9 script you can
refer to the imported function in a mapping by prefixing it with |<SID>|: >
noremap <silent> ,a :call <SID>name.Function()<CR>

Expand Down