Skip to content

Commit a3b1081

Browse files
authored
Merge pull request #2549 from h-east/update-options
Update options.{txt,jax}
2 parents 83d7243 + 777b01c commit a3b1081

2 files changed

Lines changed: 51 additions & 8 deletions

File tree

doc/options.jax

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim バージョン 9.2. Last change: 2026 Mar 16
1+
*options.txt* For Vim バージョン 9.2. Last change: 2026 Mar 23
22

33

44
VIM リファレンスマニュアル by Bram Moolenaar
@@ -119,13 +119,26 @@ Vimには、特別な働きをさせるための多くの内部変数とスイ
119119
オプションがフラグのリストであるときは、冗長なフラグは
120120
取り除かれる。すでに入っているフラグを加えようとしたと
121121
きは、そのオプションの値は変わらない。
122+
オプションが "key:value" 項目をサポートしており、
123+
{value} に "key:value" 項目またはコンマ区切りの複数の
124+
項目が含まれている場合、各項目は個別に処理される:
125+
- キーが異なる値で既に存在する "key:value" の項目: 古
126+
い項目は削除され、新しい項目が末尾に追加される。
127+
- 完全に重複する "key:value" の項目は変更されない。
128+
- 既に存在するその他の項目は変更されない。
129+
- 新しい項目は末尾に追加される。
122130
上の |:set-args| も参照。
123131

124132
:se[t] {option}^={value} *:set^=*
125-
数値オプションに対してはその値を {value} 倍する。文字
126-
列オプションに対しては前に {value} を追加する。オプショ
127-
ンがコンマ区切りのリストのときは、{value} と元の値の間
128-
にコンマが付け加えられる。
133+
数値オプションの場合は値を {value} 倍し、文字列オプショ
134+
ンの場合は {value} を先頭に追加する。オプションがコン
135+
マ区切りのリストの場合は、値が空でない限りコンマが追加
136+
される。
137+
オプションが "key:value" 項目をサポートしており、
138+
{value} に "key:value" 項目またはコンマ区切りの複数の
139+
項目が含まれている場合、各項目は個別に処理される。
140+
|:set+=| と同様の動作だが、新しい項目は末尾に追加され
141+
るのではなく、先頭に追加される。
129142
上の |:set-args| も参照。
130143

131144
:se[t] {option}-={value} *:set-=*
@@ -140,6 +153,12 @@ Vimには、特別な働きをさせるための多くの内部変数とスイ
140153
中に現れるままに、正確に指定しなければならない。問題が
141154
起こるのを避けるために、フラグを取り除くときは1個ずつ
142155
指定すること。
156+
オプションが "key:value" 項目をサポートしており、
157+
{value} に "key:value" 項目またはこコンマ区切りの複数
158+
の項目が含まれている場合、各項目は個別に処理され
159+
る。"key:value" 項目は、値に関係なく、そのキーを持つ既
160+
存の項目を削除する。"key:" 項目も、キーの一致に基づい
161+
て削除する。
143162
コンマで区切られたリストやフラグのリストにある個々の値
144163
は、'wildchar' をタイプすることで挿入できる。
145164
|complete-set-option| を参照のこと。
@@ -6059,7 +6078,8 @@ Note 1番目の形式では、行全体がオプション指定に使われる
60596078
この制限を200より大きな値に増やした場合、Exコマンドの再帰の最大値も変
60606079
更される。|E169| 参照。
60616080
|:function| も参照。
6062-
コールバック関数の呼び出しの深さの最大値にも用いられる。
6081+
また、コールバック関数の呼び出しの深さの最大値や、深くネストされた
6082+
JSON データのエンコードおよびデコードにも使用される。
60636083

60646084
*'maxmapdepth'* *'mmd'* *E223*
60656085
'maxmapdepth' 'mmd' 数値 (既定では 1000)

en/options.txt

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 9.2. Last change: 2026 Mar 16
1+
*options.txt* For Vim version 9.2. Last change: 2026 Mar 23
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -97,13 +97,29 @@ achieve special effects. These options come in three forms:
9797
If the option is a list of flags, superfluous flags
9898
are removed. When adding a flag that was already
9999
present the option value doesn't change.
100+
When the option supports "key:value" items and {value}
101+
contains a "key:value" item or multiple
102+
comma-separated items, each item is processed
103+
individually:
104+
- A "key:value" item where the key already exists with
105+
a different value: the old item is removed and the
106+
new item is appended to the end.
107+
- A "key:value" item that is an exact duplicate is
108+
left unchanged.
109+
- Other items that already exist are left unchanged.
110+
- New items are appended to the end.
100111
Also see |:set-args| above.
101112

102113
:se[t] {option}^={value} *:set^=*
103114
Multiply the {value} to a number option, or prepend
104115
the {value} to a string option. When the option is a
105116
comma-separated list, a comma is added, unless the
106117
value was empty.
118+
When the option supports "key:value" items and {value}
119+
contains a "key:value" item or multiple
120+
comma-separated items, each item is processed
121+
individually. Works like |:set+=| but new items are
122+
prepended to the beginning instead of appended.
107123
Also see |:set-args| above.
108124

109125
:se[t] {option}-={value} *:set-=*
@@ -116,6 +132,12 @@ achieve special effects. These options come in three forms:
116132
When the option is a list of flags, {value} must be
117133
exactly as they appear in the option. Remove flags
118134
one by one to avoid problems.
135+
When the option supports "key:value" items and {value}
136+
contains a "key:value" item or multiple
137+
comma-separated items, each item is processed
138+
individually. A "key:value" item removes the existing
139+
item with that key regardless of its value. A "key:"
140+
item also removes by key match.
119141
The individual values from a comma separated list or
120142
list of flags can be inserted by typing 'wildchar'.
121143
See |complete-set-option|.
@@ -6004,7 +6026,8 @@ A jump table for the options with a short description can be found at |Q_op|.
60046026
Increasing this limit above 200 also changes the maximum for Ex
60056027
command recursion, see |E169|.
60066028
See also |:function|.
6007-
Also used for maximum depth of callback functions.
6029+
Also used for maximum depth of callback functions and encoding and
6030+
decoding of deeply nested json data.
60086031

60096032
*'maxmapdepth'* *'mmd'* *E223*
60106033
'maxmapdepth' 'mmd' number (default 1000)

0 commit comments

Comments
 (0)