Skip to content

Commit a1f02b9

Browse files
authored
Merge pull request #2271 from h-east/update-eval
Update eval.{txt,jax}
2 parents ab4a0d9 + d683980 commit a1f02b9

File tree

2 files changed

+116
-77
lines changed

2 files changed

+116
-77
lines changed

doc/eval.jax

Lines changed: 55 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim バージョン 9.1. Last change: 2025 Aug 20
1+
*eval.txt* For Vim バージョン 9.1. Last change: 2025 Aug 29
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -2165,8 +2165,8 @@ v:beval_winid マウスポインタがあるウィンドウのウィンドウID
21652165
v:char 'formatexpr' を評価しているときの引数。また、短縮入力
21662166
|:map-<expr>|<expr> を指定しているとき、タイプされた文字を
21672167
保持する。
2168-
これは |InsertCharPre||InsertEnter| および |KeyInputPre|
2169-
ベントでも使われる
2168+
これは |InsertCharPre||InsertEnter||KeyInputPre|
2169+
|CmdlineLeave| および |CmdlineLeavePre| イベントでも使われる
21702170

21712171
*v:charconvert_from* *charconvert_from-variable*
21722172
v:charconvert_from
@@ -2183,8 +2183,10 @@ v:clipmethod 現在使用されているクリップボードへのアクセス
21832183
かの値になる:
21842184
wayland Wayland プロトコルが使用されている。
21852185
x11 X11 セレクションが使用されている。
2186-
none 上記の方法は利用できないか、使用できな
2187-
い。
2186+
gui GUI固有のメソッドが使用されている。
2187+
other 他のメソッドが使用されています。
2188+
none クリップボード機能が無効または使用でき
2189+
ない。
21882190
詳細は 'clipmethod' を参照。
21892191

21902192
*v:cmdarg* *cmdarg-variable*
@@ -2783,57 +2785,76 @@ v:t_enumvalue |enumvalue| 型の値。読出し専用。 参照: |type()|
27832785
*v:t_tuple* *t_tuple-variable*
27842786
v:t_tuple |Tuple| 型の値。読出し専用。 参照: |type()|
27852787

2786-
*v:termresponse* *termresponse-variable*
2788+
*v:termresponse* *termresponse-variable*
27872789
v:termresponse termcapのエントリ|t_RV|で端末から返されるエスケープシーケンス。
27882790
ESC [ または CSI で始まり、次に '>' または '?' が来て、途中数
27892791
字と ';' だけから構成され 'c' で終わるエスケープシーケンスを受
2790-
け取ったとき代入される。このオプションがセットされると自動コマ
2791-
ンドイベント TermResponse が発生し、端末からの応答に反応するこ
2792-
とができる。また、同様に自動コマンドイベント TermResponseAll
2793-
<amatch> に "version" がセットされた状態で発生する。
2792+
け取ったとき代入される。この変数がセットされると自動コマンドイ
2793+
ベント TermResponse が発生し、端末からの応答に反応することがで
2794+
きる。また、同様に自動コマンドイベント TermResponseAll
2795+
<amatch> に "version" がセットされた状態で発生する。
27942796
|terminalprops()| を使うことで Vim が端末をどのように認識した
27952797
かを知ることができる。
2796-
新しいxtermからの応答は次の形式である:
2797-
"<Esc>[> Pp ; Pv ; Pc c"。ここでPpは端末のタイプ: 0ならvt100、
2798-
1ならvt220。Pvはパッチレベル(パッチ95で導入されたため常に95以
2799-
上)。Pcは常に0
2800-
Pv が141以上の場合、Vim は端末コードの要求を試す。これは xterm
2801-
でのみ動作する |xterm-codes|
2798+
新しい xterm からの応答は次の形式である:
2799+
"<Esc>[> Pp ; Pv ; Pc c"。ここで Pp は端末のタイプ: 0 なら
2800+
vt100、1 なら vt220。Pv はパッチレベル (パッチ 95 で導入された
2801+
ため常に 95 以上)。Pc は常に 0
2802+
Pv が 141 以上の場合、Vim は端末コードの要求を試す。これは
2803+
xtermでのみ動作する |xterm-codes|
28022804
{Vimが|+termresponse|機能付きでコンパイルされたときのみ有効}
28032805

2804-
*v:termblinkresp*
2806+
*v:termblinkresp* *termblinkresp-variable*
28052807
v:termblinkresp termcapのエントリ |t_RC| で端末から返されるエスケープシーケン
28062808
ス。端末カーソルが点滅しているかを調べるために使用される。
2807-
|term_getcursor()| で使用される。このオプションがセットされて
2808-
いるとき<amatch> に "cursorblink" がセットされた状態で自動コ
2809-
マンドイベント TermResponseAll が発生する。
2809+
|term_getcursor()| で使用される。この変数がセットされていると
2810+
<amatch> に "cursorblink" がセットされた状態で自動コマンド
2811+
イベント TermResponseAll が発生する。
28102812

2811-
*v:termstyleresp*
2813+
*v:termstyleresp* *termstyleresp-variable*
28122814
v:termstyleresp termcapのエントリ |t_RS| で端末から返されるエスケープシーケン
28132815
ス。カーソルの形状を調べるために使用される。|term_getcursor()|
2814-
で使用される。このオプションがセットされているとき<amatch>
2815-
"cursorshape" がセットされた状態で自動コマンドイベント
2816+
で使用される。この変数がセットされているとき<amatch>
2817+
"cursorshape" がセットされた状態で自動コマンドイベント
28162818
TermResponseAll が発生する。
28172819

2818-
*v:termrbgresp*
2820+
*v:termrbgresp* *termrbgresp-variable*
28192821
v:termrbgresp termcapのエントリ |t_RB| で端末から返されるエスケープシーケン
28202822
ス。端末の背景色を調べるために使用される。'background' を参照。
28212823
このオプションがセットされているとき、<amatch> に "background"
28222824
がセットされた状態で自動コマンドイベント TermResponseAll が発
28232825
生する。
2826+
これは通常、Vim に同梱されている
2827+
$VIMRUNTIME/plugin/colorresp.vim プラグインによって設定される
2828+
が、何をしているのか分かっている場合は手動で設定することもでき
2829+
る。
2830+
Note これを変更しても何も起こらないことに注意。
28242831

2825-
*v:termrfgresp*
2832+
*v:termrfgresp* *termrfgresp-variable*
28262833
v:termrfgresp termcapのエントリ |t_RF| で端末から返されるエスケープシーケン
2827-
ス。端末の文字色を調べるために使用される。このオプションがセッ
2828-
トされているとき、<amatch> に "foreground" がセットされた状態
2829-
で自動コマンドイベント TermResponseAll が発生する。
2834+
ス。端末の文字色を調べるために使用される。|v:termrbgresp| と同
2835+
じように動作する
28302836

2831-
*v:termu7resp*
2837+
*v:termu7resp* *termu7resp-variable*
28322838
v:termu7resp termcapのエントリ |t_u7| で端末から返されるエスケープシーケン
28332839
ス。曖昧な幅の文字に対して端末が何をするか調べるのに使われる。
2834-
'ambiwidth' を参照。このオプションがセットされているとき、
2835-
<amatch> に "ambiguouswidth" がセットされた状態で自動コマンド
2836-
イベント TermResponseAll が発生する。
2840+
'ambiwidth' を参照。この変数がセットされているとき、<amatch>
2841+
に "ambiguouswidth" がセットされた状態で自動コマンドイベント
2842+
TermResponseAll が発生する。
2843+
2844+
*v:termda1* *termda1-variable*
2845+
v:termda1 端末からのプライマリデバイス属性 (DA1) クエリによって返される
2846+
エスケープシーケンス。この変数が設定されている場合、<amatch>
2847+
に "da1" が設定セットされた状態で TermResponseAll 自動コマンド
2848+
イベントが発生する。端末の OSC 52 サポートを検出するために使用
2849+
できる。
2850+
2851+
*v:termosc* *termosc-variable*
2852+
v:termosc ターミナルから受信した最新の OSC 応答のエスケープシーケンス。
2853+
この変数が設定されている場合、|TermResponseAll| 自動コマンドイ
2854+
ベントが発行され、<amatch> が "osc" に設定される。また、
2855+
$VIMRUNTIME/plugin/colorresp.vim プラグイン経由で
2856+
|v:termrbgresp| および |v:termrfgresp| を設定する際にも使用さ
2857+
れる
28372858

28382859
*v:testing* *testing-variable*
28392860
v:testing `test_garbagecollect_now()` を使う前に設定する必要がある。
@@ -2902,7 +2923,7 @@ v:vim_did_enter ほとんどのスタートアップが完了するまでの間
29022923
v:warningmsg 最後に表示された警告メッセージ。この変数は代入することが許され
29032924
ている。
29042925

2905-
*v:wayland_display*
2926+
*v:wayland_display* *wayland_display-variable*
29062927
v:wayland_display
29072928
Vim が接続されている Wayland ディスプレイの名前。環境変数
29082929
$WAYLAND_DISPLAY に相当する。
@@ -3379,7 +3400,7 @@ text...
33793400
- |Vim9| script ではエラーになる。
33803401
- 旧来のスクリプトでは黙って無視される。
33813402

3382-
:if {expr1} *:if* *:end* *:endif* *:en* *E171* *E579* *E580*
3403+
:if {expr1} *:if* *:end* *:endif* *:en* *E171* *E579* *E580*
33833404
:en[dif] {expr1}が非ゼロと評価された場合に、対応する `:else`
33843405
`:endif` までの命令を実行する。
33853406
短い記述でも動作するが、混乱を避け自動インデントを正し

en/eval.txt

Lines changed: 61 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 9.1. Last change: 2025 Aug 20
1+
*eval.txt* For Vim version 9.1. Last change: 2025 Aug 29
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -972,8 +972,8 @@ is not available it returns -1 or the default value you specify: >
972972
973973
Blob iteration ~
974974

975-
The |:for| loop executes commands for each byte of a Blob. The loop variable is
976-
set to each byte in the Blob. Example: >
975+
The |:for| loop executes commands for each byte of a Blob. The loop variable
976+
is set to each byte in the Blob. Example: >
977977
:for byte in 0z112233
978978
: call Doit(byte)
979979
:endfor
@@ -1547,9 +1547,9 @@ String. A negative index always results in an empty string (reason: backward
15471547
compatibility). Use [-1:] to get the last byte or character.
15481548
In Vim9 script a negative index is used like with a list: count from the end.
15491549

1550-
If expr10 is a |List| then it results the item at index expr1. See |list-index|
1551-
for possible index values. If the index is out of range this results in an
1552-
error. Example: >
1550+
If expr10 is a |List| then it results the item at index expr1. See
1551+
|list-index| for possible index values. If the index is out of range this
1552+
results in an error. Example: >
15531553
:let item = mylist[-1] " get last item
15541554
15551555
Generally, if a |List| index is equal to or higher than the length of the
@@ -2227,8 +2227,8 @@ v:beval_winid The |window-ID| of the window, over which the mouse pointer
22272227
*v:char* *char-variable*
22282228
v:char Argument for evaluating 'formatexpr' and used for the typed
22292229
character when using <expr> in an abbreviation |:map-<expr>|.
2230-
It is also used by the |InsertCharPre|, |InsertEnter| and
2231-
|KeyInputPre| events.
2230+
It is also used by the |InsertCharPre|, |InsertEnter|,
2231+
|KeyInputPre|, |CmdlineLeave| and |CmdlineLeavePre| events.
22322232

22332233
*v:charconvert_from* *charconvert_from-variable*
22342234
v:charconvert_from
@@ -2245,8 +2245,10 @@ v:clipmethod The current method of accessing the clipboard that is being
22452245
used. Can either have the value of:
22462246
wayland The Wayland protocol is being used.
22472247
x11 X11 selections are being used.
2248-
none The above methods are unavailable or
2249-
cannot be used.
2248+
gui GUI specific method is being used
2249+
other Some other method is being used
2250+
none Clipboard functionality is disabled or
2251+
unavailable.
22502252
See 'clipmethod' for more details.
22512253

22522254
*v:cmdarg* *cmdarg-variable*
@@ -2315,9 +2317,9 @@ v:colornames A dictionary that maps color names to hex color strings. These
23152317
It is possible to remove entries from this dictionary but
23162318
doing so is NOT recommended, because it is disruptive to
23172319
other scripts. It is also unlikely to achieve the desired
2318-
result because the |:colorscheme| and |:highlight| commands will
2319-
both automatically load all `colors/lists/default.vim` color
2320-
scripts.
2320+
result because the |:colorscheme| and |:highlight| commands
2321+
will both automatically load all `colors/lists/default.vim`
2322+
color scripts.
23212323

23222324
You can make changes to that file, but make sure to add new
23232325
keys instead of updating existing ones, otherwise Vim will skip
@@ -2718,9 +2720,10 @@ v:python3_version
27182720
should exactly match the Python library up to the minor
27192721
version (e.g. 3.10.2 and 3.10.3 are compatible as the minor
27202722
version is "10", whereas 3.9.4 and 3.10.3 are not compatible).
2721-
When |python-stable-abi| is used, this will be the minimum Python
2722-
version that you can use instead. (e.g. if v:python3_version
2723-
indicates 3.9, you can use 3.9, 3.10, or anything above).
2723+
When |python-stable-abi| is used, this will be the minimum
2724+
Python version that you can use instead. (e.g. if
2725+
v:python3_version indicates 3.9, you can use 3.9, 3.10, or
2726+
anything above).
27242727

27252728
This number is encoded as a hex number following Python ABI
27262729
versioning conventions. Do the following to have a
@@ -2858,16 +2861,16 @@ v:t_enumvalue Value of |enumvalue| type. Read-only. See: |type()|
28582861
*v:t_tuple* *t_tuple-variable*
28592862
v:t_tuple Value of |Tuple| type. Read-only. See: |type()|
28602863

2861-
*v:termresponse* *termresponse-variable*
2864+
*v:termresponse* *termresponse-variable*
28622865
v:termresponse The escape sequence returned by the terminal for the |t_RV|
28632866
termcap entry. It is set when Vim receives an escape sequence
28642867
that starts with ESC [ or CSI, then '>' or '?' and ends in a
28652868
'c', with only digits and ';' in between.
2866-
When this option is set, the TermResponse autocommand event is
2867-
fired, so that you can react to the response from the
2869+
When this variable is set, the TermResponse autocommand event
2870+
is fired, so that you can react to the response from the
28682871
terminal. The TermResponseAll event is also fired, with
2869-
<amatch> set to "version". You can use |terminalprops()| to see
2870-
what Vim figured out about the terminal.
2872+
<amatch> set to "version". You can use |terminalprops()| to
2873+
see what Vim figured out about the terminal.
28712874
The response from a new xterm is: "<Esc>[> Pp ; Pv ; Pc c". Pp
28722875
is the terminal type: 0 for vt100 and 1 for vt220. Pv is the
28732876
patch level (since this was introduced in patch 95, it's
@@ -2876,41 +2879,54 @@ v:termresponse The escape sequence returned by the terminal for the |t_RV|
28762879
codes. This only works with xterm |xterm-codes|.
28772880
{only when compiled with |+termresponse| feature}
28782881

2879-
*v:termblinkresp*
2882+
*v:termblinkresp* *termblinkresp-variable*
28802883
v:termblinkresp The escape sequence returned by the terminal for the |t_RC|
28812884
termcap entry. This is used to find out whether the terminal
28822885
cursor is blinking. This is used by |term_getcursor()|. When
2883-
this option is set, the TermResponseAll autocommand event is
2886+
this variable is set, the TermResponseAll autocommand event is
28842887
fired, with <amatch> set to "cursorblink".
28852888

2886-
*v:termstyleresp*
2889+
*v:termstyleresp* *termstyleresp-variable*
28872890
v:termstyleresp The escape sequence returned by the terminal for the |t_RS|
28882891
termcap entry. This is used to find out what the shape of the
28892892
cursor is. This is used by |term_getcursor()|. When this
2890-
option is set, the TermResponseAll autocommand event is fired,
2891-
with <amatch> set to "cursorshape".
2893+
variable is set, the TermResponseAll autocommand event is
2894+
fired, with <amatch> set to "cursorshape".
28922895

2893-
*v:termrbgresp*
2896+
*v:termrbgresp* *termrbgresp-variable*
28942897
v:termrbgresp The escape sequence returned by the terminal for the |t_RB|
28952898
termcap entry. This is used to find out what the terminal
2896-
background color is; see 'background'. When this option is
2897-
set, the TermResponseAll autocommand event is fired, with
2898-
<amatch> set to "background".
2899+
background color is; see 'background'. This is set by the
2900+
$VIMRUNTIME/plugin/colorresp.vim plugin normally included with
2901+
Vim, but can be set manually if you know what you are doing.
2902+
Note that changing this will not do anything.
28992903

2900-
*v:termrfgresp*
2904+
*v:termrfgresp* *termrfgresp-variable*
29012905
v:termrfgresp The escape sequence returned by the terminal for the |t_RF|
29022906
termcap entry. This is used to find out what the terminal
2903-
foreground color is. When this option is set, the
2904-
TermResponseAll autocommand event is fired, with <amatch> set
2905-
to "foreground".
2907+
foreground color is. Behaves the same as |v:termrbgresp|
29062908

2907-
*v:termu7resp*
2909+
*v:termu7resp* *termu7resp-variable*
29082910
v:termu7resp The escape sequence returned by the terminal for the |t_u7|
29092911
termcap entry. This is used to find out what the terminal
29102912
does with ambiguous width characters, see 'ambiwidth'. When
2911-
this option is set, the TermResponseAll autocommand event is
2913+
this variable is set, the TermResponseAll autocommand event is
29122914
fired, with <amatch> set to "ambiguouswidth".
29132915

2916+
*v:termda1* *termda1-variable*
2917+
v:termda1 The escape sequence returned by a primary device attributes
2918+
(DA1) query from the terminal. When this variable is set, the
2919+
TermResponseAll autocommand event is fired, with <amatch> set
2920+
to "da1". Can be used to detect OSC 52 support in a terminal.
2921+
2922+
*v:termosc* *termosc-variable*
2923+
v:termosc The escape sequence of the most recent OSC response received
2924+
from the terminal. When this variable is set, the
2925+
|TermResponseAll| autocommand event is fired, with <amatch>
2926+
set to "osc". Also used to set the |v:termrbgresp| and
2927+
|v:termrfgresp| via the $VIMRUNTIME/plugin/colorresp.vim
2928+
plugin
2929+
29142930
*v:testing* *testing-variable*
29152931
v:testing Must be set before using `test_garbagecollect_now()`.
29162932
Also, when set certain error messages won't be shown for 2
@@ -2978,7 +2994,7 @@ v:vim_did_enter Zero until most of startup is done. It is set to one just
29782994
*v:warningmsg* *warningmsg-variable*
29792995
v:warningmsg Last given warning message. It's allowed to set this variable.
29802996

2981-
*v:wayland_display*
2997+
*v:wayland_display* *wayland_display-variable*
29822998
v:wayland_display
29832999
The name of the Wayland display that Vim is connected to.
29843000
Equivalent to the $WAYLAND_DISPLAY environment variable.
@@ -3340,7 +3356,8 @@ text...
33403356
One or more items from a |List| can be removed: >
33413357
:unlet list[3] " remove fourth item
33423358
:unlet list[3:] " remove fourth item to last
3343-
< One item from a |Dictionary| can be removed at a time: >
3359+
< One item from a |Dictionary| can be removed at a time:
3360+
>
33443361
:unlet dict['two']
33453362
:unlet dict.two
33463363
< This is especially useful to clean up used global
@@ -3471,7 +3488,7 @@ text...
34713488
- In |Vim9| script an error is given.
34723489
- In legacy script this is silently ignored.
34733490

3474-
:if {expr1} *:if* *:end* *:endif* *:en* *E171* *E579* *E580*
3491+
:if {expr1} *:if* *:end* *:endif* *:en* *E171* *E579* *E580*
34753492
:en[dif] Execute the commands until the next matching `:else`
34763493
or `:endif` if {expr1} evaluates to non-zero.
34773494
Although the short forms work, it is recommended to
@@ -3809,8 +3826,9 @@ text...
38093826
message in the |message-history|. When used in a
38103827
script or function the line number will be added.
38113828
Spaces are placed between the arguments as with the
3812-
`:echomsg` command. When used inside a try conditional,
3813-
the message is raised as an error exception instead
3829+
`:echomsg` command. When used inside a try
3830+
conditional, the message is raised as an error
3831+
exception instead
38143832
(see |try-echoerr|).
38153833
Example: >
38163834
:echoerr "This script just failed!"
@@ -5156,8 +5174,8 @@ to execute the given executable. For security reasons users may not want to
51565174
have Vim execute random executables or may have forbidden to do so for
51575175
specific filetypes by setting the "<filetype>_exec" variable (|plugin_exec|).
51585176

5159-
It returns |true| or |false| to indicate whether the plugin should run the given
5160-
executable. It takes the following arguments:
5177+
It returns |true| or |false| to indicate whether the plugin should run the
5178+
given executable. It takes the following arguments:
51615179

51625180
argument type ~
51635181

0 commit comments

Comments
 (0)