From 26f60d74f0fc83e898d79d1f1973b1e691db561c Mon Sep 17 00:00:00 2001 From: h-east Date: Thu, 10 Jul 2025 21:12:38 +0900 Subject: [PATCH 1/3] Update options.{txt,jax} --- doc/options.jax | 17 ++++++++++++++++- en/options.txt | 17 ++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/doc/options.jax b/doc/options.jax index 464f3b2fb..25468fc81 100644 --- a/doc/options.jax +++ b/doc/options.jax @@ -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 08 VIMリファレンスマニュアル by Bram Moolenaar @@ -9787,6 +9787,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる < 'wildchar' は、|/|、|?|、|:s|、|:g|、|:v|、|:vim| などの検索パターンコ ンテキストでも補完を有効にする。補完をトリガーする代わりに、文字の を挿入するには、 または "\t" と入力する。 + |'wildoptions'| も参照。 NOTE: このオプションは 'compatible' がオンになると Vi の既定値に設定さ れ、'compatible' がオフになると Vim の既定値に設定されるので注意。 @@ -9949,6 +9950,20 @@ Note 1番目の形式では、行全体がオプション指定に使われる コマンドライン補完 |cmdline-completion| の挙動を変える単語のリスト。 以下の値をサポートする: + exacttext このフラグを指定すると、検索パターン補完 (例: |/|、 + |?|、|:s|、|:g|、|:v|、|:vim|) で、正規表現の位置アン + カー (例: |/<|) のような記号を含めず、バッファ内の実際 + のテキストと完全にマッチする内容がメニュー項目として表 + 示される。これにより、バッファ内のテキストと直感的に + マッチするメニュー項目が表示される。 + ただし、パターンが正確に保存されないため、検索の精度が + 低下する可能性がある。 + デフォルトでは、Vim は入力されたパターン (アンカー付き) + を保存し、マッチした単語を追加する。これにより、特に正 + 規表現を使用している場合や 'smartcase' が有効になって + いる場合に、検索の正確性が維持される。ただし、追加され + たマッチした単語の大文字と小文字は、バッファ内の単語の + 大文字と小文字が完全にマッチしない場合がある。 fuzzy 補完のマッチ検索にファジーマッチ |fuzzy-matching| を使 用する。この値が設定された場合、補完でワイルドカード展 開が使用されなくなる。マッチ結果はアルファベット順ソー diff --git a/en/options.txt b/en/options.txt index 034c04f97..e71f0d635 100644 --- a/en/options.txt +++ b/en/options.txt @@ -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 08 VIM REFERENCE MANUAL by Bram Moolenaar @@ -9759,6 +9759,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 instead of triggering completion, type 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. @@ -9926,6 +9927,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 From af56062aba8d1f34d965d87468aa6a4a5b826365 Mon Sep 17 00:00:00 2001 From: h-east Date: Fri, 11 Jul 2025 07:03:43 +0900 Subject: [PATCH 2/3] Update by original --- doc/options.jax | 14 ++++++++++++-- en/options.txt | 14 ++++++++++++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/doc/options.jax b/doc/options.jax index 25468fc81..c183cba0c 100644 --- a/doc/options.jax +++ b/doc/options.jax @@ -1,4 +1,4 @@ -*options.txt* For Vim バージョン 9.1. Last change: 2025 Jul 08 +*options.txt* For Vim バージョン 9.1. Last change: 2025 Jul 10 VIMリファレンスマニュアル by Bram Moolenaar @@ -5943,6 +5943,15 @@ Note 1番目の形式では、行全体がオプション指定に使われる る。 'maxmem' も参照。 + *'maxsearchcount'* *'msc'* +'maxsearchcount' 'msc' 数値 (既定では 99) + グローバル + 検索カウントステータスに表示されるマッチの最大数 |shm-S| 。 + マッチ数がこの値を超えると、検索を高速化するために、正確な数の代わりに + ">" が表示される。 + Note: 値を大きくするとパフォーマンスに影響する可能性がある。 + 値は 1 から 9999 までの範囲で指定する必要がある。 + *'menuitems'* *'mis'* 'menuitems' 'mis' 数値 (既定では 25) グローバル @@ -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]" "[最終行が不完全]" diff --git a/en/options.txt b/en/options.txt index e71f0d635..5c2904853 100644 --- a/en/options.txt +++ b/en/options.txt @@ -1,4 +1,4 @@ -*options.txt* For Vim version 9.1. Last change: 2025 Jul 08 +*options.txt* For Vim version 9.1. Last change: 2025 Jul 10 VIM REFERENCE MANUAL by Bram Moolenaar @@ -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 @@ -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 , but still gives as useful a message as From 532280563aedda4ef9843b7bcf0f3f239b773b6a Mon Sep 17 00:00:00 2001 From: h-east Date: Fri, 11 Jul 2025 07:14:18 +0900 Subject: [PATCH 3/3] tweak --- doc/options.jax | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/options.jax b/doc/options.jax index c183cba0c..aa39e5b72 100644 --- a/doc/options.jax +++ b/doc/options.jax @@ -7701,7 +7701,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる る) 場合、"search hit BOTTOM, continuing at TOP" および "search hit TOP, continuing at BOTTOM" メッセージは、検索件数 統計の前に "W" (覚え方: Wrapped) 文字のみで示される。最大制限 - 値は 'maxsearchcount' オプションで設定できる。 + 数は 'maxsearchcount' オプションで設定できる。 {訳注: 以下日本語メッセージの場合: "[Incomplete last line]" "[最終行が不完全]"