Skip to content

Commit 7332296

Browse files
authoredMar 7, 2025··
Merge pull request #1969 from h-east/update-options
Update options.{txt,jax}
2 parents 36938ef + c3126b4 commit 7332296

File tree

2 files changed

+83
-63
lines changed

2 files changed

+83
-63
lines changed
 

‎doc/options.jax

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

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -2156,13 +2156,29 @@ Note 1番目の形式では、行全体がオプション指定に使われる
21562156
完項目がポップアップメニューに表示される方法をカスタマイズできる。
21572157
Note: どのような順序であっても、常にこれら 3 つの値を含んでいなければ
21582158
ならない。
2159+
挿入モード補完中にポップアップメニューの項目の配置と表示順序を制御する
2160+
文字列のコンマ区切りのリスト。サポートされている値は、"abbr"、"kind"、
2161+
および "menu" である。これらの値によりポップアップメニューでの
2162+
|complete-items| の表示方法をカスタマイズできる。Note: どのような順序
2163+
であっても、常にこれら 3 つの値を含んでいなければならない。
21592164

21602165
*'completeopt'* *'cot'*
21612166
'completeopt' 'cot' 文字列 (既定では "menu,preview")
21622167
グローバル/バッファについてローカル |global-local|
21632168
入力モードでの補完|ins-completion|についてのオプションのコンマ区切りの
21642169
リスト。サポートされている値は次の通り:
21652170

2171+
fuzzy 補完候補に対して |fuzzy-matching| を有効にする。これによ
2172+
り、より柔軟で直感的なマッチングが可能になり、文字をスキッ
2173+
プしたり、正確なシーケンスが入力されていなくてもマッチを見
2174+
つけることができる。
2175+
2176+
longest 候補の文字列の最長の共通部分だけを挿入する。メニューが表示
2177+
されているならばCTRL-Lでさらに文字を挿入することができる。
2178+
大文字・小文字が同一視されるかどうかは補完の種類による。
2179+
バッファのテキストについてはオプション 'ignorecase' が適用
2180+
される。
2181+
21662182
menu ポップアップメニューで補完候補を表示する。ポップアップメ
21672183
ニューは、候補が2個以上あり、十分な数の色が使用できるとき
21682184
だけ表示される。|ins-completion-menu|を参照。
@@ -2171,15 +2187,17 @@ Note 1番目の形式では、行全体がオプション指定に使われる
21712187
ついて付加的な情報があるときに便利である。例えば、それがど
21722188
のファイルに含まれているかなど。
21732189

2174-
longest 候補の文字列の最長の共通部分だけを挿入する。メニューが表示
2175-
されているならばCTRL-Lでさらに文字を挿入することができる。
2176-
大文字・小文字が同一視されるかどうかは補完の種類による。
2177-
バッファのテキストについてはオプション 'ignorecase' が適用
2178-
される。
2190+
noinsert いかなるマッチしたテキストも、ユーザーがメニューから選択し
2191+
ない限り挿入しない。"menu" か "menuone" と組み合わせたとき
2192+
にだけ機能する。"longest" が指定された場合には、なんの影響
2193+
も発生しない。
21792194

2180-
preview 現在選択されている候補についての付加的な情報をプレビュー
2181-
ウィンドウに表示する。"menu" または "menuone" と組み合わせ
2182-
たときのみ有効。
2195+
noselect メニュー項目が事前に選択されない点を除いて、"noinsert" と
2196+
同じである。"noinsert" と "noselect" の両方が存在する場合
2197+
は、"noselect" が優先される。
2198+
2199+
nosort "fuzzy" が有効になっている場合の、ファジースコアに基づく補
2200+
完候補の並べ替えを無効にする。候補は元の順序で表示される。
21832201

21842202
popup 現在選択されている補完に関する追加情報をポップアップウィン
21852203
ドウに表示する。"menu" または "menuone" との組み合わせでの
@@ -2194,27 +2212,15 @@ Note 1番目の形式では、行全体がオプション指定に使われる
21942212
|complete-popuphidden| の例を参照。
21952213
{|+textprop| 機能付きでコンパイルされたときのみ有効}
21962214

2197-
noinsert いかなるマッチしたテキストも、ユーザーがメニューから選択し
2198-
ない限り挿入しない。"menu" か "menuone" と組み合わせたとき
2199-
にだけ機能する。"longest" が指定された場合には、なんの影響
2200-
も発生しない。
2201-
2202-
noselect メニュー項目が事前に選択されない点を除いて、"noinsert" と
2203-
同じである。"noinsert" と "noselect" の両方が存在する場合
2204-
は、"noselect" が優先される。
2205-
2206-
fuzzy 補完候補に対して |fuzzy-matching| を有効にする。これによ
2207-
り、より柔軟で直感的なマッチングが可能になり、文字をスキッ
2208-
プしたり、正確なシーケンスが入力されていなくてもマッチを見
2209-
つけることができる。
2210-
2211-
nosort "fuzzy" が有効になっている場合の、ファジースコアに基づく補
2212-
完候補の並べ替えを無効にする。候補は元の順序で表示される。
2213-
22142215
preinsert
22152216
現在の補完リーダーの一部ではない最初の候補単語の部分を事前
22162217
に挿入し、|hl-ComplMatchIns| ハイライトグループを使用する。
2217-
"fuzzy" も含まれている場合は機能しない。
2218+
これを機能させるには、"fuzzy" が設定されておらず、
2219+
"menuone" が設定されている必要がある。
2220+
2221+
preview 現在選択されている候補についての付加的な情報をプレビュー
2222+
ウィンドウに表示する。"menu" または "menuone" と組み合わせ
2223+
たときのみ有効。
22182224

22192225
*'completepopup'* *'cpp'*
22202226
'completepopup' 'cpp' 文字列 (既定では空)
@@ -9592,7 +9598,10 @@ Note 1番目の形式では、行全体がオプション指定に使われる
95929598
"list" 複数のマッチがあるときは、全てのマッチを羅列する。
95939599
"lastused" バッファ名が補完され1より多くマッチした時、バッファを
95949600
最終利用時刻でソートする (カレントバッファ以外)。
9595-
マッチが1個しかないときは、どの場合でも完全に補完される。
9601+
"noselect" 最初のメニュー項目を事前に選択せず、有効な場合は
9602+
'wildmenu' を開始する。
9603+
マッチするものが 1 つしかない場合は、"noselect" が存在する場合を除き、
9604+
すべてのケースで完全に補完される。
95969605

95979606
コロン区切りで利用できる例:
95989607
"longest:full" "longest" と似ているが、'wildmenu' が有効ならばそれも
@@ -9614,7 +9623,11 @@ Note 1番目の形式では、行全体がオプション指定に使われる
96149623
:set wildmode=list,full
96159624
< 補完せずに全てのマッチを羅列し、次からマッチを完全に補完する >
96169625
:set wildmode=longest,list
9617-
< 共通する最長の文字列を補完し、次から他の候補を羅列する
9626+
< 共通する最長の文字列を補完し、次から他の候補を羅列する >
9627+
:set wildmode=noselect:full
9628+
< 補完せずに 'wildmenu' を表示し、次に各完全マッチを表示する >
9629+
:set wildmode=noselect:lastused,full
9630+
< 上記と同じだが、バッファを最後に使用した時間でソートする。
96189631
より詳しくは |cmdline-completion| を参照。
96199632

96209633
*'wildoptions'* *'wop'*

‎en/options.txt

+41-34
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 9.1. Last change: 2025 Feb 16
1+
*options.txt* For Vim version 9.1. Last change: 2025 Mar 02
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2107,10 +2107,10 @@ A jump table for the options with a short description can be found at |Q_op|.
21072107
*'completeitemalign'* *'cia'*
21082108
'completeitemalign' 'cia' string (default: "abbr,kind,menu")
21092109
global
2110-
A comma-separated list of |complete-items| that controls the alignment
2111-
and display order of items in the popup menu during Insert mode
2112-
completion. The supported values are abbr, kind, and menu. These
2113-
options allow to customize how the completion items are shown in the
2110+
A comma-separated list of strings that controls the alignment and
2111+
display order of items in the popup menu during Insert mode
2112+
completion. The supported values are "abbr", "kind", and "menu".
2113+
These values allow customizing how |complete-items| are shown in the
21142114
popup menu. Note: must always contain those three values in any
21152115
order.
21162116

@@ -2120,6 +2120,17 @@ A jump table for the options with a short description can be found at |Q_op|.
21202120
A comma-separated list of options for Insert mode completion
21212121
|ins-completion|. The supported values are:
21222122

2123+
fuzzy Enable |fuzzy-matching| for completion candidates. This
2124+
allows for more flexible and intuitive matching, where
2125+
characters can be skipped and matches can be found even
2126+
if the exact sequence is not typed.
2127+
2128+
longest Only insert the longest common text of the matches. If
2129+
the menu is displayed you can use CTRL-L to add more
2130+
characters. Whether case is ignored depends on the kind
2131+
of completion. For buffer text the 'ignorecase' option is
2132+
used.
2133+
21232134
menu Use a popup menu to show the possible completions. The
21242135
menu is only shown when there is more than one match and
21252136
sufficient colors are available. |ins-completion-menu|
@@ -2128,15 +2139,17 @@ A jump table for the options with a short description can be found at |Q_op|.
21282139
Useful when there is additional information about the
21292140
match, e.g., what file it comes from.
21302141

2131-
longest Only insert the longest common text of the matches. If
2132-
the menu is displayed you can use CTRL-L to add more
2133-
characters. Whether case is ignored depends on the kind
2134-
of completion. For buffer text the 'ignorecase' option is
2135-
used.
2142+
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.
21362145

2137-
preview Show extra information about the currently selected
2138-
completion in the preview window. Only works in
2139-
combination with "menu" or "menuone".
2146+
noselect Same as "noinsert", except that no menu item is
2147+
pre-selected. If both "noinsert" and "noselect" are
2148+
present, "noselect" has precedence.
2149+
2150+
nosort Disable sorting of completion candidates based on fuzzy
2151+
scores when "fuzzy" is enabled. Candidates will appear
2152+
in their original order.
21402153

21412154
popup Show extra information about the currently selected
21422155
completion in a popup window. Only works in combination
@@ -2151,28 +2164,15 @@ A jump table for the options with a short description can be found at |Q_op|.
21512164
See the example at |complete-popuphidden|.
21522165
{only works when compiled with the |+textprop| feature}
21532166

2154-
noinsert Do not insert any text for a match until the user selects
2155-
a match from the menu. Only works in combination with
2156-
"menu" or "menuone". No effect if "longest" is present.
2157-
2158-
noselect Same as "noinsert", except that no menu item is
2159-
pre-selected. If both "noinsert" and "noselect" are
2160-
present, "noselect" has precedence.
2161-
2162-
fuzzy Enable |fuzzy-matching| for completion candidates. This
2163-
allows for more flexible and intuitive matching, where
2164-
characters can be skipped and matches can be found even
2165-
if the exact sequence is not typed.
2166-
2167-
nosort Disable sorting of completion candidates based on fuzzy
2168-
scores when "fuzzy" is enabled. Candidates will appear
2169-
in their original order.
2170-
21712167
preinsert
21722168
Preinsert the portion of the first candidate word that is
21732169
not part of the current completion leader and using the
2174-
|hl-ComplMatchIns| highlight group. Does not work when
2175-
"fuzzy" is also included.
2170+
|hl-ComplMatchIns| highlight group. In order for it to
2171+
work, "fuzzy" must not bet set and "menuone" must be set.
2172+
2173+
preview Show extra information about the currently selected
2174+
completion in the preview window. Only works in
2175+
combination with "menu" or "menuone".
21762176

21772177
*'completepopup'* *'cpp'*
21782178
'completepopup' 'cpp' string (default empty)
@@ -9566,7 +9566,10 @@ A jump table for the options with a short description can be found at |Q_op|.
95669566
"lastused" When completing buffer names and more than one buffer
95679567
matches, sort buffers by time last used (other than
95689568
the current buffer).
9569-
When there is only a single match, it is fully completed in all cases.
9569+
"noselect" Do not pre-select first menu item and start 'wildmenu'
9570+
if it is enabled.
9571+
When there is only a single match, it is fully completed in all cases
9572+
except when "noselect" is present.
95709573

95719574
Examples of useful colon-separated values:
95729575
"longest:full" Like "longest", but also start 'wildmenu' if it is
@@ -9589,7 +9592,11 @@ A jump table for the options with a short description can be found at |Q_op|.
95899592
:set wildmode=list,full
95909593
< List all matches without completing, then each full match >
95919594
:set wildmode=longest,list
9592-
< Complete longest common string, then list alternatives.
9595+
< Complete longest common string, then list alternatives >
9596+
:set wildmode=noselect:full
9597+
< Display 'wildmenu' without completing, then each full match >
9598+
:set wildmode=noselect:lastused,full
9599+
< Same as above, but sort buffers by time last used.
95939600
More info here: |cmdline-completion|.
95949601

95959602
*'wildoptions'* *'wop'*

0 commit comments

Comments
 (0)
Please sign in to comment.