Skip to content

Commit 3b8fc66

Browse files
authored
Merge pull request #1454 from vim-jp/hh-update-options
Update options.{txt,jax}
2 parents a77994a + 65ebd53 commit 3b8fc66

File tree

2 files changed

+64
-20
lines changed

2 files changed

+64
-20
lines changed

doc/options.jax

+29-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim バージョン 9.1. Last change: 2024 Jan 30
1+
*options.txt* For Vim バージョン 9.1. Last change: 2024 Mar 11
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -363,6 +363,7 @@ Note: 以下は |global-local| オプションにも適用される。
363363
オプション 理由 ~
364364
'previewwindow' 1つしか存在できない
365365
'scroll' 既存のウィンドウに固有のもの
366+
'winfixbuf' 既存のウィンドウに固有のもの
366367
'winfixheight' 既存のウィンドウに固有のもの
367368
'winfixwidth' 既存のウィンドウに固有のもの
368369

@@ -395,13 +396,20 @@ Note: 以下は |global-local| オプションにも適用される。
395396
グローバルオプションに対しては、グローバルな値が表示さ
396397
れる (しかし、これは将来変更されるかもしれない)。
397398

399+
:se[t] {option}< {option} の実効値をそのグローバル値に設定する。
400+
文字列の |global-local| オプションの場合、ローカル値は
401+
削除され、グローバル値が使用されるようになる。
402+
他のすべてのオプションの場合、グローバル値がローカル値
403+
にコピーされる。
398404

399-
:setl[ocal] {option}< 値をコピーすることによって{option}のローカルな値をグ
400-
ローバルな値と同じにする。
405+
:setl[ocal] {option}< {option} の実効値をそのグローバル値に設定する。
406+
数値および真偽値の |global-local| オプションの場合、
407+
ローカル値が削除され、グローバル値が使用される。
408+
文字列の |global-local| オプションを含む他のすべてのオ
409+
プションでは、グローバル値がローカル値にコピーされる。
401410

402-
:se[t] {option}< |global-local| オプションに対して: {option} のローカル
403-
値を削除する。そうすることでグローバル値が使われるよう
404-
になる。
411+
Note |global-local| オプションの挙動は、文字列ベースのオプションと数値ベースの
412+
オプションでは若干異なることに注意。
405413

406414
*:setg* *:setglobal*
407415
:setg[lobal][!] ... コマンド ":set" と似ているが、ローカルオプションのグロー
@@ -4034,7 +4042,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
40344042
*'guiligatures'* *'gli'* *E1243*
40354043
'guiligatures' 'gli' 文字列 (既定では "")
40364044
グローバル
4037-
{GTK GUIでのみ有効}
4045+
{GTK および Win32 GUI でのみ有効}
40384046
より複雑な形状を作るために結合して利用できるASCII文字セットのリスト。
40394047
各文字は値が32-127の範囲内の印字可能なASCIIの文字。
40404048
例: >
@@ -6481,7 +6489,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
64816489
のオンのままにしておくこと。昔の Vi スクリプトを使うときだけこれをオフ
64826490
にすること。
64836491

6484-
*'renderoptions'* *'rop'*
6492+
*'renderoptions'* *'rop'*
64856493
'renderoptions' 'rop' 文字列 (既定では空)
64866494
グローバル
64876495
{Vim が MS-Windows で GUI と DIRECTX 付きでコンパイル
@@ -7273,8 +7281,8 @@ Note 1番目の形式では、行全体がオプション指定に使われる
72737281
中にメッセージを表示しない
72747282
q "記録中 @a" の代わりに "記録中" を表示 *shm-q*
72757283
F コマンドに対する |:silent| のように、ファイルを編集中 *shm-F*
7276-
にファイル情報を表示しない。note これは autocommand からのメッ
7277-
セージにも影響する
7284+
にファイル情報を表示しない。note これは autocommand および
7285+
'autoread' の再読み込みからのメッセージにも影響する
72787286
S 検索時に検索件数メッセージを表示しない。例えば "[1/5]" *shm-S*
72797287
{訳注: 以下日本語メッセージの場合:
72807288
"[Incomplete last line]" "[最終行が不完全]"
@@ -8055,6 +8063,8 @@ Note 1番目の形式では、行全体がオプション指定に使われる
80558063
両方指定された場合はこちらが優先される。
80568064
uselast これが含まれていると、|quickfix| コマンドでエラーにジャ
80578065
ンプするときに、前に使われたウィンドウにジャンプする。
8066+
ウィンドウで 'winfixbuf' が有効になっている場合、'switchbuf' は現在の
8067+
ところ分割ウィンドウには適用されない。
80588068

80598069
*'synmaxcol'* *'smc'*
80608070
'synmaxcol' 'smc' 数値 (既定では 3000)
@@ -9496,6 +9506,15 @@ Note 1番目の形式では、行全体がオプション指定に使われる
94969506
Note: Vim のウィンドウの高さと混同しないこと。それには 'lines' を利用
94979507
する。
94989508

9509+
*'winfixbuf'*
9510+
'winfixbuf' 'wfb' 切替 (既定ではオフ)
9511+
ウィンドウについてローカル
9512+
有効にすると、ウィンドウとそれが表示しているバッファがペアになる。
9513+
例えば、|:edit| を使用してバッファを変更しようとすると失敗する。
9514+
ウィンドウのバッファを変更する |:cnext| のような他のコマンドも
9515+
'winfixbuf' が有効なウィンドウをスキップする。ただし、Ex コマンドに
9516+
"!" 修飾子がある場合は、バッファを強制的に切り替えることができる。
9517+
94999518
*'winfixheight'* *'wfh'* *'nowinfixheight'* *'nowfh'*
95009519
'winfixheight' 'wfh' 切替 (既定ではオフ)
95019520
ウィンドウについてローカル |local-noglobal|

en/options.txt

+35-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 9.1. Last change: 2024 Jan 30
1+
*options.txt* For Vim version 9.1. Last change: 2024 Mar 11
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -333,6 +333,7 @@ created, thus they behave slightly differently:
333333
Option Reason ~
334334
'previewwindow' there can only be a single one
335335
'scroll' specific to existing window
336+
'winfixbuf' specific to existing window
336337
'winfixheight' specific to existing window
337338
'winfixwidth' specific to existing window
338339

@@ -365,11 +366,24 @@ created, thus they behave slightly differently:
365366
For a global option the global value is
366367
shown (but that might change in the future).
367368

368-
:setl[ocal] {option}< Set the local value of {option} to its global value by
369-
copying the value.
370-
371-
:se[t] {option}< For |global-local| options: Remove the local value of
372-
{option}, so that the global value will be used.
369+
:se[t] {option}< Set the effective value of {option} to its global
370+
value.
371+
For string |global-local| options, the local value is
372+
removed, so that the global value will be used.
373+
For all other options, the global value is copied to
374+
the local value.
375+
376+
:setl[ocal] {option}< Set the effective value of {option} to its global
377+
value.
378+
For number and boolean |global-local| options, the
379+
local value is removed, so that the global value will
380+
be used.
381+
For all other options, including string |global-local|
382+
options, the global value is copied to the local
383+
value.
384+
385+
Note that the behaviour for |global-local| options is slightly different
386+
between string and number-based options.
373387

374388
*:setg* *:setglobal*
375389
:setg[lobal][!] ... Like ":set" but set only the global value for a local
@@ -2919,7 +2933,7 @@ A jump table for the options with a short description can be found at |Q_op|.
29192933
Use the indent heuristic for the internal
29202934
diff library.
29212935

2922-
algorithm:{text} Use the specified diff algorithm with the
2936+
algorithm:{text} Use the specified diff algorithm with the
29232937
internal diff engine. Currently supported
29242938
algorithms are:
29252939
myers the default algorithm
@@ -4000,7 +4014,7 @@ A jump table for the options with a short description can be found at |Q_op|.
40004014
*'guiligatures'* *'gli'* *E1243*
40014015
'guiligatures' 'gli' string (default "")
40024016
global
4003-
{only for GTK GUI}
4017+
{only for GTK and Win32 GUI}
40044018
List of ASCII characters that, when combined together, can create more
40054019
complex shapes. Each character must be a printable ASCII character
40064020
with a value in the 32-127 range.
@@ -6454,7 +6468,7 @@ A jump table for the options with a short description can be found at |Q_op|.
64546468
this option at the default "on". Only switch it off when working with
64556469
old Vi scripts.
64566470

6457-
*'renderoptions'* *'rop'*
6471+
*'renderoptions'* *'rop'*
64586472
'renderoptions' 'rop' string (default: empty)
64596473
global
64606474
{only available when compiled with GUI and DIRECTX on
@@ -7240,7 +7254,7 @@ A jump table for the options with a short description can be found at |Q_op|.
72407254
q use "recording" instead of "recording @a" *shm-q*
72417255
F don't give the file info when editing a file, like *shm-F*
72427256
`:silent` was used for the command; note that this also
7243-
affects messages from autocommands
7257+
affects messages from autocommands and 'autoread' reloading
72447258
S do not show search count message when searching, e.g. *shm-S*
72457259
"[1/5]"
72467260

@@ -8008,6 +8022,8 @@ A jump table for the options with a short description can be found at |Q_op|.
80088022
"split" when both are present.
80098023
uselast If included, jump to the previously used window when
80108024
jumping to errors with |quickfix| commands.
8025+
If a window has 'winfixbuf' enabled, 'switchbuf' is currently not
8026+
applied to the split window.
80118027

80128028
*'synmaxcol'* *'smc'*
80138029
'synmaxcol' 'smc' number (default 3000)
@@ -9458,6 +9474,15 @@ A jump table for the options with a short description can be found at |Q_op|.
94589474
Note: Do not confuse this with the height of the Vim window, use
94599475
'lines' for that.
94609476

9477+
*'winfixbuf'*
9478+
'winfixbuf' 'wfb' boolean (default off)
9479+
local to window
9480+
If enabled, the window and the buffer it is displaying are paired.
9481+
For example, attempting to change the buffer with |:edit| will fail.
9482+
Other commands which change a window's buffer such as |:cnext| will
9483+
also skip any window with 'winfixbuf' enabled. However if an Ex
9484+
command has a "!" modifier, it can force switching buffers.
9485+
94619486
*'winfixheight'* *'wfh'* *'nowinfixheight'* *'nowfh'*
94629487
'winfixheight' 'wfh' boolean (default off)
94639488
local to window |local-noglobal|

0 commit comments

Comments
 (0)