Skip to content

Commit 592c82a

Browse files
authored
Merge pull request #1977 from h-east/update-options
Update options.{txt,jax}
2 parents 4a30bdf + c494951 commit 592c82a

File tree

2 files changed

+44
-11
lines changed

2 files changed

+44
-11
lines changed

doc/options.jax

+20-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim バージョン 9.1. Last change: 2025 Mar 02
1+
*options.txt* For Vim バージョン 9.1. Last change: 2025 Mar 07
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -2147,6 +2147,18 @@ Note 1番目の形式では、行全体がオプション指定に使われる
21472147
セキュリティ上の理由から、このオプションを |modeline| または |sandbox|
21482148
内で設定することはできない。
21492149

2150+
*'completefuzzycollect'* *'cfc'*
2151+
'completefuzzycollect' 'cfc' 文字列 (既定では空)
2152+
グローバル
2153+
このオプションは特定の |ins-completion| モード (一部のみ) のファジーな
2154+
収集を有効にし、入力に基づいてファジーマッチのために項目を収集する方法
2155+
を調整する。
2156+
オプションには次の値 (コンマで区切る) を含めることができ、それぞれが特
2157+
定の補完モードのファジーな収集を有効にする。
2158+
files ファイル名
2159+
keyword 'complete' および現在のファイルでのキーワード補完
2160+
whole_line 行全体
2161+
21502162
*'completeitemalign'* *'cia'*
21512163
'completeitemalign' 'cia' 文字列 (既定では "abbr,kind,menu")
21522164
グローバル
@@ -2171,7 +2183,11 @@ Note 1番目の形式では、行全体がオプション指定に使われる
21712183
fuzzy 補完候補に対して |fuzzy-matching| を有効にする。これによ
21722184
り、より柔軟で直感的なマッチングが可能になり、文字をスキッ
21732185
プしたり、正確なシーケンスが入力されていなくてもマッチを見
2174-
つけることができる。
2186+
つけることができる。Note: このオプションは候補リストの収集
2187+
には影響しない。補完候補が代替リストからどのように削減され
2188+
るかを制御するだけである。|fuzzy-matching| を使用して候補
2189+
リストの代替をさらに収集する場合は、
2190+
|'completefuzzycollect'| を参照。
21752191

21762192
longest 候補の文字列の最長の共通部分だけを挿入する。メニューが表示
21772193
されているならばCTRL-Lでさらに文字を挿入することができる。
@@ -2215,8 +2231,8 @@ Note 1番目の形式では、行全体がオプション指定に使われる
22152231
preinsert
22162232
現在の補完リーダーの一部ではない最初の候補単語の部分を事前
22172233
に挿入し、|hl-ComplMatchIns| ハイライトグループを使用する。
2218-
これを機能させるには、"fuzzy" が設定されておらず、
2219-
"menuone" が設定されている必要がある
2234+
これを機能させるには、"fuzzy" を設定せずに、"menuone" を設
2235+
定する必要がある
22202236

22212237
preview 現在選択されている候補についての付加的な情報をプレビュー
22222238
ウィンドウに表示する。"menu" または "menuone" と組み合わせ

en/options.txt

+24-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 9.1. Last change: 2025 Mar 02
1+
*options.txt* For Vim version 9.1. Last change: 2025 Mar 07
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2104,6 +2104,18 @@ A jump table for the options with a short description can be found at |Q_op|.
21042104
This option cannot be set from a |modeline| or in the |sandbox|, for
21052105
security reasons.
21062106

2107+
*'completefuzzycollect'* *'cfc'*
2108+
'completefuzzycollect' 'cfc' string (default: empty)
2109+
global
2110+
This option enables fuzzy collection for (only some) specific
2111+
|ins-completion| modes, adjusting how items are gathered for fuzzy
2112+
matching based on input.
2113+
The option can contain the following values (separated by commas),
2114+
each enabling fuzzy collection for a specific completion mode:
2115+
files file names
2116+
keyword keyword completion in 'complete' and current file
2117+
whole_line whole lines
2118+
21072119
*'completeitemalign'* *'cia'*
21082120
'completeitemalign' 'cia' string (default: "abbr,kind,menu")
21092121
global
@@ -2123,7 +2135,12 @@ A jump table for the options with a short description can be found at |Q_op|.
21232135
fuzzy Enable |fuzzy-matching| for completion candidates. This
21242136
allows for more flexible and intuitive matching, where
21252137
characters can be skipped and matches can be found even
2126-
if the exact sequence is not typed.
2138+
if the exact sequence is not typed. Note: This option
2139+
does not affect the collection of candidate list, it only
2140+
controls how completion candidates are reduced from the
2141+
list of alternatives. If you want to use |fuzzy-matching|
2142+
to gather more alternatives for your candidate list,
2143+
see |'completefuzzycollect'|.
21272144

21282145
longest Only insert the longest common text of the matches. If
21292146
the menu is displayed you can use CTRL-L to add more
@@ -2140,15 +2157,15 @@ A jump table for the options with a short description can be found at |Q_op|.
21402157
match, e.g., what file it comes from.
21412158

21422159
noinsert Do not insert any text for a match until the user selects
2143-
a match from the menu. Only works in combination with
2144-
"menu" or "menuone". No effect if "longest" is present.
2160+
a match from the menu. Only works in combination with
2161+
"menu" or "menuone". No effect if "longest" is present.
21452162

21462163
noselect Same as "noinsert", except that no menu item is
2147-
pre-selected. If both "noinsert" and "noselect" are
2164+
pre-selected. If both "noinsert" and "noselect" are
21482165
present, "noselect" has precedence.
21492166

21502167
nosort Disable sorting of completion candidates based on fuzzy
2151-
scores when "fuzzy" is enabled. Candidates will appear
2168+
scores when "fuzzy" is enabled. Candidates will appear
21522169
in their original order.
21532170

21542171
popup Show extra information about the currently selected
@@ -2168,7 +2185,7 @@ A jump table for the options with a short description can be found at |Q_op|.
21682185
Preinsert the portion of the first candidate word that is
21692186
not part of the current completion leader and using the
21702187
|hl-ComplMatchIns| highlight group. In order for it to
2171-
work, "fuzzy" must not bet set and "menuone" must be set.
2188+
work, "fuzzy" must not be set and "menuone" must be set.
21722189

21732190
preview Show extra information about the currently selected
21742191
completion in the preview window. Only works in

0 commit comments

Comments
 (0)