Skip to content
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

Update options.{txt,jax} #1977

Merged
merged 1 commit into from
Mar 11, 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
24 changes: 20 additions & 4 deletions doc/options.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*options.txt* For Vim バージョン 9.1. Last change: 2025 Mar 02
*options.txt* For Vim バージョン 9.1. Last change: 2025 Mar 07


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

*'completefuzzycollect'* *'cfc'*
'completefuzzycollect' 'cfc' 文字列 (既定では空)
グローバル
このオプションは特定の |ins-completion| モード (一部のみ) のファジーな
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

個人差あると思いますが、
「モード (一部のみ) のファジーな」→「モード (一部のみ) においてファジーな」
みたいにしたほうが読みやすくなるかなあと思いました。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ここはこのままでいきますね。🫶

収集を有効にし、入力に基づいてファジーマッチのために項目を収集する方法
を調整する。
オプションには次の値 (コンマで区切る) を含めることができ、それぞれが特
定の補完モードのファジーな収集を有効にする。
files ファイル名
keyword 'complete' および現在のファイルでのキーワード補完
whole_line 行全体

*'completeitemalign'* *'cia'*
'completeitemalign' 'cia' 文字列 (既定では "abbr,kind,menu")
グローバル
Expand All @@ -2171,7 +2183,11 @@ Note 1番目の形式では、行全体がオプション指定に使われる
fuzzy 補完候補に対して |fuzzy-matching| を有効にする。これによ
り、より柔軟で直感的なマッチングが可能になり、文字をスキッ
プしたり、正確なシーケンスが入力されていなくてもマッチを見
つけることができる。
つけることができる。Note: このオプションは候補リストの収集
には影響しない。補完候補が代替リストからどのように削減され
るかを制御するだけである。|fuzzy-matching| を使用して候補
リストの代替をさらに収集する場合は、
|'completefuzzycollect'| を参照。

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

preview 現在選択されている候補についての付加的な情報をプレビュー
ウィンドウに表示する。"menu" または "menuone" と組み合わせ
Expand Down
31 changes: 24 additions & 7 deletions en/options.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*options.txt* For Vim version 9.1. Last change: 2025 Mar 02
*options.txt* For Vim version 9.1. Last change: 2025 Mar 07


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

*'completefuzzycollect'* *'cfc'*
'completefuzzycollect' 'cfc' string (default: empty)
global
This option enables fuzzy collection for (only some) specific
|ins-completion| modes, adjusting how items are gathered for fuzzy
matching based on input.
The option can contain the following values (separated by commas),
each enabling fuzzy collection for a specific completion mode:
files file names
keyword keyword completion in 'complete' and current file
whole_line whole lines

*'completeitemalign'* *'cia'*
'completeitemalign' 'cia' string (default: "abbr,kind,menu")
global
Expand All @@ -2123,7 +2135,12 @@ A jump table for the options with a short description can be found at |Q_op|.
fuzzy Enable |fuzzy-matching| for completion candidates. This
allows for more flexible and intuitive matching, where
characters can be skipped and matches can be found even
if the exact sequence is not typed.
if the exact sequence is not typed. Note: This option
does not affect the collection of candidate list, it only
controls how completion candidates are reduced from the
list of alternatives. If you want to use |fuzzy-matching|
to gather more alternatives for your candidate list,
see |'completefuzzycollect'|.

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

noinsert Do not insert any text for a match until the user selects
a match from the menu. Only works in combination with
"menu" or "menuone". No effect if "longest" is present.
a match from the menu. Only works in combination with
"menu" or "menuone". No effect if "longest" is present.

noselect Same as "noinsert", except that no menu item is
pre-selected. If both "noinsert" and "noselect" are
pre-selected. If both "noinsert" and "noselect" are
present, "noselect" has precedence.

nosort Disable sorting of completion candidates based on fuzzy
scores when "fuzzy" is enabled. Candidates will appear
scores when "fuzzy" is enabled. Candidates will appear
in their original order.

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

preview Show extra information about the currently selected
completion in the preview window. Only works in
Expand Down