Skip to content

Commit ee0fc5a

Browse files
authored
Merge pull request #2339 from h-east/update-options
Update options.{txt,jax}
2 parents 7e36504 + e74f76c commit ee0fc5a

File tree

2 files changed

+90
-42
lines changed

2 files changed

+90
-42
lines changed

doc/options.jax

Lines changed: 44 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim バージョン 9.1. Last change: 2025 Sep 15
1+
*options.txt* For Vim バージョン 9.1. Last change: 2025 Sep 29
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -939,7 +939,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
939939

940940
*'autocomplete'* *'ac'* *'noautocomplete'* *'noac'*
941941
'autocomplete' 'ac' 切替 (既定ではオフ)
942-
グローバル
942+
グローバル/バッファについてローカル |global-local|
943943
{Vim がタイミングをサポートするプラットフォームでのみ
944944
有効}
945945
オンにすると、Vim は入力時に補完メニューを表示する。これは |i_CTRL-N|
@@ -2305,6 +2305,21 @@ Note 1番目の形式では、行全体がオプション指定に使われる
23052305
大文字・小文字が同一視されるかどうかは補完の種類による。
23062306
バッファのテキストについてはオプション 'ignorecase' が適用
23072307
される。
2308+
longest
2309+
'autocomplete' が無効の場合、マッチした単語の最長共通プリ
2310+
フィックスのみが挿入される。ポップアップメニューが表示され
2311+
ている場合は、CTRL-L で文字を追加できる。大文字小文字が無
2312+
視されるかどうかは、補完の種類によって異なる。バッファ内の
2313+
テキストには、'ignorecase' オプションが適用される。
2314+
2315+
'autocomplete' が有効で、補完項目が選択されていない場合、
2316+
マッチした候補の中の最長共通プリフィックスがカーソルの後ろ
2317+
に挿入される。このプリフィックスは、表示されているすべての
2318+
項目から取得するか、カレントバッファ内の項目のみから取得す
2319+
る。挿入されたテキストは |hl-PreInsert| でハイライトされ、
2320+
カーソル位置は変化しない (`"preinsert"` と同様)。挿入する
2321+
には CTRL-Y を押下する。
2322+
|preinserted()| も参照。
23082323

23092324
menu ポップアップメニューで補完候補を表示する。ポップアップメ
23102325
ニューは、候補が2個以上あり、十分な数の色が使用できるとき
@@ -2346,24 +2361,22 @@ Note 1番目の形式では、行全体がオプション指定に使われる
23462361
{|+textprop| 機能付きでコンパイルされたときのみ有効}
23472362

23482363
preinsert
2349-
'autocomplete' がアクティブでない場合、最初の候補単語のう
2350-
ち、|hl-PreInsert| でハイライト表示されている現在の補完リー
2351-
ダーの後ろの部分を挿入する。カーソルは移動しない。'fuzzy'
2352-
が未設定で、'completeopt' に "menuone" が指定されている必
2353-
要がある。
2354-
2355-
'autocomplete' がアクティブな場合、(表示されているすべての
2356-
項目、または現在のバッファ項目から) マッチした単語の中で最
2357-
長の共通プリフィックスを挿入する。これは、メニュー項目が選
2358-
択されていない場合にのみ実行される。確定するには Ctrl-Y を
2359-
押す。
2364+
最初の補完候補のテキストを、現在のリーダーの後ろに挿入す
2365+
る。このテキストは |hl-PreInsert| でハイライトされる。
2366+
カーソルは移動しない。
2367+
"fuzzy" を無効にし、さらに 'completeopt' に "menuone" を設
2368+
定するか、または 'autocomplete' を有効にしておく必要があ
2369+
る。'autocomplete' を有効にしている場合、'ignorecase' だけ
2370+
が設定されていて 'infercase' が設定されていないと動作しな
2371+
い。
2372+
|preinserted()| も参照。
23602373

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

2365-
'autocomplete' が有効な場合、"fuzzy"、"popup"、"popuphidden"、
2366-
"preinsert" および "preview" のみ効果がある
2378+
'autocomplete' が有効な場合、"fuzzy"、"longest"、"popup"、
2379+
"popuphidden"、"preinsert" および"preview" のみが効果がある
23672380

23682381
このオプションは |cmdline-completion| には適用されない。詳細については
23692382
'wildoptions' を参照。
@@ -3813,8 +3826,14 @@ Note 1番目の形式では、行全体がオプション指定に使われる
38133826
'fileignorecase' 'fic' 切替 (既定値: ファイル名の大文字と小文字の違いを無
38143827
視するシステムではオン)
38153828
グローバル
3816-
このオプションを設定すると、ファイル名とディレクトリ名の大文字と小文字
3817-
の違いが無視される。
3829+
このオプションを設定すると、ファイルおよびディレクトリ名の大文字と小文
3830+
字の違いが無視される。
3831+
3832+
このオプションは、ファイルシステムが伝統的に大文字と小文字を区別しない
3833+
システム (例えば MS-Windows や macOS) ではデフォルトでオンになってい
3834+
る。ただし、Vim は実行時に特定のファイルシステムが大文字と小文字を区別
3835+
するか区別しないかを判断できない。
3836+
38183837
補完で大文字と小文字の違いを無視したい場合は 'wildignorecase' を参照。
38193838

38203839
*'filetype'* *'ft'*
@@ -8959,6 +8978,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
89598978
も新しいバージョンが必要である。以下のように確認する: >
89608979
if has('vcon')
89618980
< これには Vim が |+vtp| 機能付きでビルドされている必要がある。
8981+
|win32-term-colors| も参照。
89628982

89638983
Note "cterm" の特徴はまだ使われているが、"gui" はそうではないことに注
89648984
意。
@@ -10232,8 +10252,8 @@ Note 1番目の形式では、行全体がオプション指定に使われる
1023210252
*'wlsteal'* *'wst'* *'nowlsteal'* *'nowst'*
1023310253
'wlsteal' 'wst' 切替 (既定ではオフ)
1023410254
グローバル
10235-
{|+wayland_clipboard| 機能付きでコンパイルされたときの
10236-
み有効}
10255+
{|+wayland_focus_steal| 機能付きでコンパイルされたとき
10256+
のみ有効}
1023710257
有効にすると、Vim はクリップボードにアクセスするために一時的なサーフェ
1023810258
スを作成してフォーカスを奪取できるようになる。詳細については
1023910259
|wayland-focus-steal| を参照。
@@ -10268,6 +10288,11 @@ Note 1番目の形式では、行全体がオプション指定に使われる
1026810288
< 'sidescroll'、'listchars' や |wrap-off| を参照。
1026910289
オプション 'diff' がオンの場合、モードライン |modeline| からこのオプ
1027010290
ションを設定することはできない。
10291+
|modeline| または |sandbox| で 'nowrap' が設定された場合、'list' およ
10292+
び 'listchars' オプションの値に関係なく、'>' が |lcs-extends| 文字とし
10293+
て使用される。これは、ビューポート外の悪意のあるコードが検知されないこ
10294+
とを防ぐためである。この動作を無効にするには、後で手動で
10295+
`:setlocal nowrap` を使用する。
1027110296

1027210297
*'wrapmargin'* *'wm'*
1027310298
'wrapmargin' 'wm' 数値 (既定では 0)

en/options.txt

Lines changed: 46 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt*For Vim version 9.1. Last change: 2025 Sep 15
1+
*options.txt*For Vim version 9.1. Last change: 2025 Sep 29
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -913,7 +913,7 @@ A jump table for the options with a short description can be found at |Q_op|.
913913

914914
*'autocomplete'* *'ac'* *'noautocomplete'* *'noac'*
915915
'autocomplete' 'ac'boolean (default off)
916-
global
916+
global or local to buffer |global-local|
917917
{only available on platforms with timing support}
918918
When on, Vim shows a completion menu as you type, similar to using
919919
|i_CTRL-N|, but triggered automatically. See |ins-autocompletion|.
@@ -2256,11 +2256,22 @@ A jump table for the options with a short description can be found at |Q_op|.
22562256
to gather more alternatives for your candidate list,
22572257
see 'completefuzzycollect'.
22582258

2259-
longest Only insert the longest common text of the matches. If
2260-
the menu is displayed you can use CTRL-L to add more
2261-
characters. Whether case is ignored depends on the kind
2262-
of completion. For buffer text the 'ignorecase' option is
2263-
used.
2259+
longest
2260+
When 'autocomplete' is not active, only the longest
2261+
common prefix of the matches is inserted. If the popup
2262+
menu is displayed, you can use CTRL-L to add more
2263+
characters. Whether case is ignored depends on the type
2264+
of completion. For buffer text the 'ignorecase' option
2265+
applies.
2266+
2267+
When 'autocomplete' is active and no completion item is
2268+
selected, the longest common prefix of the matches is
2269+
inserted after the cursor. The prefix is taken either
2270+
from all displayed items or only from items in the current
2271+
buffer. The inserted text is highlighted with
2272+
|hl-PreInsert|, and the cursor position does not change
2273+
(similar to `"preinsert"`). Press CTRL-Y to accept.
2274+
See also |preinserted()|.
22642275

22652276
menu Use a popup menu to show the possible completions. The
22662277
menu is only shown when there is more than one match and
@@ -2302,22 +2313,21 @@ A jump table for the options with a short description can be found at |Q_op|.
23022313
{only works when compiled with the |+textprop| feature}
23032314

23042315
preinsert
2305-
When 'autocomplete' is not active, inserts the part of the
2306-
first candidate word beyond the current completion leader,
2307-
highlighted with |hl-PreInsert|. The cursor doesn't move.
2308-
Requires "fuzzy" unset and "menuone" in 'completeopt'.
2309-
2310-
When 'autocomplete' is active, inserts the longest common
2311-
prefix of matches (from all shown items or from the
2312-
current buffer items). This occurs only when no menu item
2313-
is selected. Press CTRL-Y to accept.
2316+
Inserts the text of the first completion candidate
2317+
beyond the current leader, highlighted with |hl-PreInsert|.
2318+
The cursor does not move.
2319+
Requires "fuzzy" to be unset, and either "menuone" in
2320+
'completeopt' or 'autocomplete' enabled. When
2321+
'autocomplete' is enabled, this does not work if
2322+
'ignorecase' is set without 'infercase'.
2323+
See also |preinserted()|.
23142324

23152325
preview Show extra information about the currently selected
23162326
completion in the preview window. Only works in
23172327
combination with "menu" or "menuone".
23182328

2319-
Only "fuzzy", "popup", "popuphidden", "preinsert" and "preview" have
2320-
an effect when 'autocomplete' is enabled.
2329+
Only "fuzzy", "longest", "popup", "popuphidden", "preinsert" and
2330+
"preview" have an effect when 'autocomplete' is enabled.
23212331

23222332
This option does not apply to |cmdline-completion|. See 'wildoptions'
23232333
for that.
@@ -3699,7 +3709,7 @@ A jump table for the options with a short description can be found at |Q_op|.
36993709
command to find the illegal byte sequence.
37003710
WRONG VALUES: WHAT'S WRONG:
37013711
latin1,utf-8 "latin1" will always be used
3702-
utf-8,ucs-bom,latin1 BOM won't be recognized in an utf-8
3712+
utf-8,ucs-bom,latin1 BOM won't be recognized in a utf-8
37033713
file
37043714
cp1250,latin1 "cp1250" will always be used
37053715
If 'fileencodings' is empty, 'fileencoding' is not modified.
@@ -3791,7 +3801,13 @@ A jump table for the options with a short description can be found at |Q_op|.
37913801
'fileignorecase' 'fic'boolean (default on for systems where case in file
37923802
names is normally ignored)
37933803
global
3794-
When set case is ignored when using file names and directories.
3804+
When set, case is ignored when using file and directory names.
3805+
3806+
This option is on by default on systems where the filesystem is
3807+
traditionally case-insensitive (for example MS-Windows and macOS).
3808+
However, Vim cannot determine at runtime whether a particular
3809+
filesystem is case-sensitive or case-insensitive.
3810+
37953811
See 'wildignorecase' for only ignoring case when doing completion.
37963812

37973813
*'filetype'* *'ft'*
@@ -8913,14 +8929,15 @@ A jump table for the options with a short description can be found at |Q_op|.
89138929
When on, uses |highlight-guifg| and |highlight-guibg| attributes in
89148930
the terminal (thus using 24-bit color).
89158931

8916-
Requires a ISO-8613-3 compatible terminal. If setting this option
8932+
Requires an ISO-8613-3 compatible terminal. If setting this option
89178933
does not work (produces a colorless UI) reading |xterm-true-color|
89188934
might help.
89198935

89208936
For Win32 console, Windows 10 version 1703 (Creators Update) or later
89218937
is required. Use this check to find out: >
89228938
if has('vcon')
8923-
<This requires Vim to be built with the |+vtp| feature.
8939+
<This requires Vim to be built with the |+vtp| feature, see also
8940+
|win32-term-colors|.
89248941

89258942
Note that the "cterm" attributes are still used, not the "gui" ones.
89268943

@@ -10204,7 +10221,8 @@ A jump table for the options with a short description can be found at |Q_op|.
1020410221
*'wlsteal'* *'wst'* *'nowlsteal'* *'nowst'*
1020510222
'wlsteal' 'wst'boolean (default off)
1020610223
global
10207-
{only when the |+wayland_clipboard| feature is included}
10224+
{only when the |+wayland_focus_steal| feature is
10225+
included}
1020810226
When enabled, then allow Vim to steal focus by creating a temporary
1020910227
surface, in order to access the clipboard. For more information see
1021010228
|wayland-focus-steal|.
@@ -10241,6 +10259,11 @@ A jump table for the options with a short description can be found at |Q_op|.
1024110259
<See 'sidescroll', 'listchars' and |wrap-off|.
1024210260
This option can't be set from a |modeline| when the 'diff' option is
1024310261
on.
10262+
If 'nowrap' was set from a |modeline| or in the |sandbox|, '>' is used
10263+
as the |lcs-extends| character regardless of the value of the 'list'
10264+
and 'listchars' options. This is to prevent malicious code outside
10265+
the viewport from going unnoticed. Use `:setlocal nowrap` manually
10266+
afterwards to disable this behavior.
1024410267

1024510268
*'wrapmargin'* *'wm'*
1024610269
'wrapmargin' 'wm'number (default 0)

0 commit comments

Comments
 (0)