Skip to content

Update options.{txt,jax} #2149

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
29 changes: 27 additions & 2 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 Jul 05
*options.txt* For Vim バージョン 9.1. Last change: 2025 Jul 10


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -5943,6 +5943,15 @@ Note 1番目の形式では、行全体がオプション指定に使われる
る。
'maxmem' も参照。

*'maxsearchcount'* *'msc'*
'maxsearchcount' 'msc' 数値 (既定では 99)
グローバル
検索カウントステータスに表示されるマッチの最大数 |shm-S| 。
マッチ数がこの値を超えると、検索を高速化するために、正確な数の代わりに
">" が表示される。
Note: 値を大きくするとパフォーマンスに影響する可能性がある。
値は 1 から 9999 までの範囲で指定する必要がある。

*'menuitems'* *'mis'*
'menuitems' 'mis' 数値 (既定では 25)
グローバル
Expand Down Expand Up @@ -7691,7 +7700,8 @@ Note 1番目の形式では、行全体がオプション指定に使われる
"[1/5]"。"S" フラグが指定されない (例えば、検索件数が表示され
る) 場合、"search hit BOTTOM, continuing at TOP" および
"search hit TOP, continuing at BOTTOM" メッセージは、検索件数
統計の前に "W" (覚え方: Wrapped) 文字のみで示される。
統計の前に "W" (覚え方: Wrapped) 文字のみで示される。最大制限
数は 'maxsearchcount' オプションで設定できる。

{訳注: 以下日本語メッセージの場合:
"[Incomplete last line]" "[最終行が不完全]"
Expand Down Expand Up @@ -9787,6 +9797,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
< 'wildchar' は、|/|、|?|、|:s|、|:g|、|:v|、|:vim| などの検索パターンコ
ンテキストでも補完を有効にする。補完をトリガーする代わりに、文字の
<Tab> を挿入するには、<C-V><Tab> または "\t" と入力する。
|'wildoptions'| も参照。
NOTE: このオプションは 'compatible' がオンになると Vi の既定値に設定さ
れ、'compatible' がオフになると Vim の既定値に設定されるので注意。

Expand Down Expand Up @@ -9949,6 +9960,20 @@ Note 1番目の形式では、行全体がオプション指定に使われる
コマンドライン補完 |cmdline-completion| の挙動を変える単語のリスト。

以下の値をサポートする:
exacttext このフラグを指定すると、検索パターン補完 (例: |/|、
|?|、|:s|、|:g|、|:v|、|:vim|) で、正規表現の位置アン
カー (例: |/<|) のような記号を含めず、バッファ内の実際
のテキストと完全にマッチする内容がメニュー項目として表
示される。これにより、バッファ内のテキストと直感的に
マッチするメニュー項目が表示される。
ただし、パターンが正確に保存されないため、検索の精度が
低下する可能性がある。
デフォルトでは、Vim は入力されたパターン (アンカー付き)
を保存し、マッチした単語を追加する。これにより、特に正
規表現を使用している場合や 'smartcase' が有効になって
いる場合に、検索の正確性が維持される。ただし、追加され
たマッチした単語の大文字と小文字は、バッファ内の単語の
大文字と小文字が完全にマッチしない場合がある。
fuzzy 補完のマッチ検索にファジーマッチ |fuzzy-matching| を使
用する。この値が設定された場合、補完でワイルドカード展
開が使用されなくなる。マッチ結果はアルファベット順ソー
Expand Down
29 changes: 27 additions & 2 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 Jul 05
*options.txt* For Vim version 9.1. Last change: 2025 Jul 10


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -5898,6 +5898,15 @@ A jump table for the options with a short description can be found at |Q_op|.
used.
Also see 'maxmem'.

*'maxsearchcount'* *'msc'*
'maxsearchcount' 'msc' number (default 99)
global
Maximum number of matches shown for the search count status |shm-S|
When the number of matches exceeds this value, Vim shows ">" instead
of the exact count to keep searching fast.
Note: larger values may impact performance.
The value must be between 1 and 9999.

*'menuitems'* *'mis'*
'menuitems' 'mis' number (default 25)
global
Expand Down Expand Up @@ -7669,7 +7678,8 @@ A jump table for the options with a short description can be found at |Q_op|.
is shown), the "search hit BOTTOM, continuing at TOP" and
"search hit TOP, continuing at BOTTOM" messages are only
indicated by a "W" (Mnemonic: Wrapped) letter before the
search count statistics.
search count statistics. The maximum limit can be set with
the 'maxsearchcount' option.

This gives you the opportunity to avoid that a change between buffers
requires you to hit <Enter>, but still gives as useful a message as
Expand Down Expand Up @@ -9759,6 +9769,7 @@ A jump table for the options with a short description can be found at |Q_op|.
< 'wildchar' also enables completion in search pattern contexts such as
|/|, |?|, |:s|, |:g|, |:v|, and |:vim|. To insert a literal <Tab>
instead of triggering completion, type <C-V><Tab> or "\t".
See also |'wildoptions'|.
NOTE: This option is set to the Vi default value when 'compatible' is
set and to the Vim default value when 'compatible' is reset.

Expand Down Expand Up @@ -9926,6 +9937,20 @@ A jump table for the options with a short description can be found at |Q_op|.
A list of words that change how |cmdline-completion| is done.

The following values are supported:
exacttext When this flag is present, search pattern completion
(e.g., in |/|, |?|, |:s|, |:g|, |:v|, and |:vim|)
shows exact buffer text as menu items, without
preserving regex artifacts like position
anchors (e.g., |/\<|). This provides more intuitive
menu items that match the actual buffer text.
However, searches may be less accurate since the
pattern is not preserved exactly.
By default, Vim preserves the typed pattern (with
anchors) and appends the matched word. This preserves
search correctness, especially when using regular
expressions or with 'smartcase' enabled. However, the
case of the appended matched word may not exactly
match the case of the word in the buffer.
fuzzy Use |fuzzy-matching| to find completion matches. When
this value is specified, wildcard expansion will not
be used for completion. The matches will be sorted by
Expand Down