Skip to content

Commit 1e6ca95

Browse files
authored
Merge pull request #2441 from h-east/update-builtin
Update builtin.{txt,jax}
2 parents 20bf1ce + 20c4f0e commit 1e6ca95

File tree

2 files changed

+45
-29
lines changed

2 files changed

+45
-29
lines changed

doc/builtin.jax

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim バージョン 9.1. Last change: 2025 Nov 28
1+
*builtin.txt* For Vim バージョン 9.1. Last change: 2025 Dec 11
22

33

44
VIM リファレンスマニュアル by Bram Moolenaar
@@ -2726,6 +2726,7 @@ executable({expr}) *executable()*
27262726
MS-Windowsではファイルが存在するかどうかだけを判定し、それが
27272727
ディレクトリでないことや、それが本当に実行可能であるかどうかは
27282728
判定されない。
2729+
27292730
MS-Windows では、Vim の実行可能ファイルと同じディレクトリにあ
27302731
る実行可能ファイルは常に見つかる。このディレクトリは $PATH に
27312732
追加されているので、実行しても動作するはずだ |win32-PATH|。
@@ -2734,6 +2735,14 @@ executable({expr}) *executable()*
27342735
行可能ファイルも見つかるが、
27352736
$NoDefaultCurrentDirectoryInExePath 環境変数を設定することでこ
27362737
れを無効にすることができる。
2738+
*$NoDefaultCurrentDirectoryInExePath*
2739+
MS-Windows では、cmd.exe を 'shell' として使用する場合、通常、
2740+
Vim のカレント作業ディレクトリにある実行可能ファイルも見つかる
2741+
が、これは `$NoDefaultCurrentDirectoryInExePath` 環境変数を設
2742+
定することで無効にすることができる。
2743+
この変数はセキュリティ上の理由から、外部コマンド (|:!|、
2744+
|:make|、|system()| 経由など) を実行するときに常に Vim によっ
2745+
て設定される。
27372746

27382747
戻り値は数値:
27392748
1 存在する
@@ -2901,7 +2910,7 @@ exists({expr}) *exists()*
29012910
|method| としても使用できる: >
29022911
Varname()->exists()
29032912
<
2904-
戻り値の型: |String|
2913+
戻り値の型: |Number|
29052914

29062915

29072916
exists_compiled({expr}) *exists_compiled()*
@@ -2918,7 +2927,7 @@ exists_compiled({expr}) *exists_compiled()*
29182927
|:def| 関数の中で使える。 *E1233*
29192928
引数やローカル変数のチェックには機能しない。
29202929

2921-
戻り値の型: |String|
2930+
戻り値の型: |Number|
29222931

29232932

29242933
exp({expr}) *exp()*
@@ -5293,19 +5302,20 @@ getwininfo([{winid}]) *getwininfo()*
52935302
の場合は1
52945303
{Vimが|+quickfix|機能付きでコンパイル
52955304
されたときのみ有効}
5305+
status_height ステータスラインの高さ (0 か 1)
5306+
tabnr タブページ番号
52965307
terminal 端末ウィンドウの場合は 1
52975308
{Vimが|+terminal|機能付きでコンパイル
52985309
されたときのみ有効}
5299-
tabnr タブページ番号
5310+
textoff テキストの前の'foldcolumn',
5311+
'signcolumn', 行番号が占める列数
53005312
topline 最上に表示されたバッファ行
53015313
variables ウィンドウローカル変数の辞書への参照
53025314
width ウィンドウ幅
53035315
winbar ウィンドウがツールバーを持っていれば
53045316
1、そうでなければ 0
53055317
wincol ウィンドウの最も左のスクリーン列、
53065318
|win_screenpos()| の "col"
5307-
textoff テキストの前の'foldcolumn',
5308-
'signcolumn', 行番号が占める列数
53095319
winid |window-ID|
53105320
winnr ウィンドウ番号
53115321
winrow ウィンドウの最も上のスクリーン行、
@@ -8172,24 +8182,24 @@ printf({fmt}, {expr1} ...) *printf()*
81728182

81738183
*E1502*
81748184
[field-width] (または [precision]) 引数を再利用できる: >
8175-
echo printf("%1$d at width %2$d is: %01$*2$d", 1, 2)
8185+
echo printf("%1$d at width %2$d is: %1$0*2$d", 1, 2)
81768186
< 1 at width 2 is: 01
81778187

81788188
ただし、別の型として使用することはできない: >
8179-
echo printf("%1$d at width %2$ld is: %01$*2$d", 1, 2)
8189+
echo printf("%1$d at width %2$ld is: %1$0*2$d", 1, 2)
81808190
< E1502: Positional argument 2 used as field width reused as
81818191
different type: long int/int
81828192

81838193
*E1503*
81848194
位置引数が使用されているが、正しい数値または引数が指定されてい
81858195
ない場合、エラーが発生する: >
8186-
echo printf("%1$d at width %2$d is: %01$*2$.*3$d", 1, 2)
8196+
echo printf("%1$d at width %2$d is: %1$0*2$.*3$d", 1, 2)
81878197
< E1503: Positional argument 3 out of bounds: %1$d at width
8188-
%2$d is: %01$*2$.*3$d
8198+
%2$d is: %1$0*2$.*3$d
81898199

81908200
最初のエラーだけが報告される: >
8191-
echo printf("%01$*2$.*3$d %4$d", 1, 2)
8192-
< E1503: Positional argument 3 out of bounds: %01$*2$.*3$d
8201+
echo printf("%1$0*2$.*3$d %4$d", 1, 2)
8202+
< E1503: Positional argument 3 out of bounds: %1$0*2$.*3$d
81938203
%4$d
81948204

81958205
*E1504*

en/builtin.txt

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim version 9.1. Last change: 2025 Nov 28
1+
*builtin.txt* For Vim version 9.1. Last change: 2025 Dec 11
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2711,13 +2711,18 @@ executable({expr}) *executable()*
27112711
then the name is also tried without adding an extension.
27122712
On MS-Windows it only checks if the file exists and is not a
27132713
directory, not if it's really executable.
2714+
27142715
On MS-Windows an executable in the same directory as the Vim
27152716
executable is always found. Since this directory is added to
27162717
$PATH it should also work to execute it |win32-PATH|.
2717-
*NoDefaultCurrentDirectoryInExePath*
2718-
On MS-Windows an executable in Vim's current working directory
2719-
is also normally found, but this can be disabled by setting
2720-
the $NoDefaultCurrentDirectoryInExePath environment variable.
2718+
*$NoDefaultCurrentDirectoryInExePath*
2719+
On MS-Windows when using cmd.exe as 'shell' an executable in
2720+
Vim's current working directory is also normally found, which
2721+
can be disabled by setting the
2722+
`$NoDefaultCurrentDirectoryInExePath` environment variable.
2723+
This variable is always set by Vim when executing external
2724+
commands (e.g., via |:!|, |:make|, or |system()|) for security
2725+
reasons.
27212726

27222727
The result is a Number:
27232728
1 exists
@@ -2887,7 +2892,7 @@ exists({expr}) *exists()*
28872892
Can also be used as a |method|: >
28882893
Varname()->exists()
28892894
<
2890-
Return type: |String|
2895+
Return type: |Number|
28912896

28922897

28932898
exists_compiled({expr}) *exists_compiled()*
@@ -2904,7 +2909,7 @@ exists_compiled({expr}) *exists_compiled()*
29042909
Can only be used in a |:def| function. *E1233*
29052910
This does not work to check for arguments or local variables.
29062911

2907-
Return type: |String|
2912+
Return type: |Number|
29082913

29092914

29102915
exp({expr}) *exp()*
@@ -5343,9 +5348,13 @@ getwininfo([{winid}]) *getwininfo()*
53435348
{only with the +quickfix feature}
53445349
quickfix 1 if quickfix or location list window
53455350
{only with the +quickfix feature}
5351+
status_height status lines height (0 or 1)
5352+
tabnr tab page number
53465353
terminal 1 if a terminal window
53475354
{only with the +terminal feature}
5348-
tabnr tab page number
5355+
textoff number of columns occupied by any
5356+
'foldcolumn', 'signcolumn' and line
5357+
number in front of the text
53495358
topline first displayed buffer line
53505359
variables a reference to the dictionary with
53515360
window-local variables
@@ -5354,9 +5363,6 @@ getwininfo([{winid}]) *getwininfo()*
53545363
otherwise
53555364
wincol leftmost screen column of the window;
53565365
"col" from |win_screenpos()|
5357-
textoff number of columns occupied by any
5358-
'foldcolumn', 'signcolumn' and line
5359-
number in front of the text
53605366
winid |window-ID|
53615367
winnr window number
53625368
winrow topmost screen line of the window;
@@ -8330,24 +8336,24 @@ printf({fmt}, {expr1} ...) *printf()*
83308336

83318337
*E1502*
83328338
You can re-use a [field-width] (or [precision]) argument: >
8333-
echo printf("%1$d at width %2$d is: %01$*2$d", 1, 2)
8339+
echo printf("%1$d at width %2$d is: %1$0*2$d", 1, 2)
83348340
< 1 at width 2 is: 01
83358341

83368342
However, you can't use it as a different type: >
8337-
echo printf("%1$d at width %2$ld is: %01$*2$d", 1, 2)
8343+
echo printf("%1$d at width %2$ld is: %1$0*2$d", 1, 2)
83388344
< E1502: Positional argument 2 used as field width reused as
83398345
different type: long int/int
83408346

83418347
*E1503*
83428348
When a positional argument is used, but not the correct number
83438349
or arguments is given, an error is raised: >
8344-
echo printf("%1$d at width %2$d is: %01$*2$.*3$d", 1, 2)
8350+
echo printf("%1$d at width %2$d is: %1$0*2$.*3$d", 1, 2)
83458351
< E1503: Positional argument 3 out of bounds: %1$d at width
8346-
%2$d is: %01$*2$.*3$d
8352+
%2$d is: %1$0*2$.*3$d
83478353

83488354
Only the first error is reported: >
8349-
echo printf("%01$*2$.*3$d %4$d", 1, 2)
8350-
< E1503: Positional argument 3 out of bounds: %01$*2$.*3$d
8355+
echo printf("%1$0*2$.*3$d %4$d", 1, 2)
8356+
< E1503: Positional argument 3 out of bounds: %1$0*2$.*3$d
83518357
%4$d
83528358

83538359
*E1504*

0 commit comments

Comments
 (0)