Skip to content

Commit 42e8e82

Browse files
committed
Update by original
1 parent 0779cf1 commit 42e8e82

File tree

2 files changed

+107
-71
lines changed

2 files changed

+107
-71
lines changed

doc/options.jax

Lines changed: 55 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim バージョン 9.1. Last change: 2025 Jun 07
1+
*options.txt* For Vim バージョン 9.1. Last change: 2025 Jun 12
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -2086,6 +2086,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
20862086
'smartindent' + オフ 高度なインデントなし
20872087
'smarttab' + オフ 高度なタブ挿入なし
20882088
'softtabstop' + 0 タブは常に 'tabstop' を基準
2089+
'softtabstop' + 0 ソフトタブストップではない
20892090
'startofline' + オン いくつかのコマンドで行頭に移動する
20902091
'tagcase' & "followic" タグファイル検索時 'ignorecase' に従う
20912092
'tagrelative' & オフ タグファイル名は相対的でない
@@ -2293,6 +2294,9 @@ Note 1番目の形式では、行全体がオプション指定に使われる
22932294
ウィンドウに表示する。"menu" または "menuone" と組み合わせ
22942295
たときのみ有効。
22952296

2297+
このオプションは |cmdline-completion| には適用されない。詳細については
2298+
'wildoptions' を参照。
2299+
22962300
*'completepopup'* *'cpp'*
22972301
'completepopup' 'cpp' 文字列 (既定では空)
22982302
グローバル
@@ -7831,10 +7835,12 @@ Note 1番目の形式では、行全体がオプション指定に使われる
78317835
グローバル
78327836
有効にすると、カーソルが先頭の空白文字にある場合、<Tab> キーは
78337837
'shiftwidth' だけインデントする。<BS> キーは逆の効果を持つ。
7834-
これは、'softtabstop' が 'shiftwidth' の値に設定されているのと同じ動作
7835-
をおこなう。このオプションは 'compatible' が設定されるとリセットされ
7836-
る。'paste' が有効になっている場合は一時的に無効になり、'paste' が無効
7837-
になっている場合は元に戻る。
7838+
先頭の空白では、これは 'softtabstop' を 'shiftwidth' の値に設定するの
7839+
と同じ効果がある。
7840+
このオプションは 'compatible' が設定されるとリセットされる。'paste' が
7841+
有効になっている場合は一時的に無効になり、'paste' が無効になっている場
7842+
合は元に戻る。
7843+
NOTE: ほとんどの場合、'softtabstop' を使用する方がよい選択肢である。
78387844
Vim におけるタブとスペースの扱い方に関する詳細な説明については、ユー
78397845
ザーガイドのセクション |30.5| を参照。
78407846

@@ -7852,21 +7858,25 @@ Note 1番目の形式では、行全体がオプション指定に使われる
78527858
*'softtabstop'* *'sts'*
78537859
'softtabstop' 'sts' 数値 (既定では 0)
78547860
バッファについてローカル
7855-
編集で <Tab> の幅として使用する空白の数。<Tab> を挿入したり <BS> を
7856-
使ったときに適用される。普通に <Tab> を挿入するような使用感でありなが
7857-
ら、実際にはスペース文字と <Tab> 文字が混ぜて使用される。これは 'ts'
7858-
を標準値の 8 にしたままで、編集作業では <Tab> 幅として他の値を使いたい
7859-
ときに便利である。その場合でも "x" 等のコマンドは実際の文字に対して動
7860-
作する。
7861-
'sts' がゼロならこの機能は無効になる。
7862-
'sts' がマイナスなら 'shiftwidth' の値が使われる。
7863-
'softtabstop' は、'paste' オプションがオンになった時には0に設定され、
7864-
'paste' オプションがリセットされた際には復元される。
7865-
|ins-expandtab| も参照。'expandtab' がオフのときは、<Tab> を打ち込むと
7866-
空白の数が最小になる {訳注: できる限り空白をタブ文字で置き換える}。
7867-
'cpoptions' にフラグ 'L' を含めると、'list' がオンのとき、タブの扱い方
7868-
が変わる。
7869-
NOTE: このオプションは、'compatible' がオンになると 0 になるので注意。
7861+
ソフトタブストップを 'softtabstop' で指定したカラム数ごとに作成する。
7862+
挿入モードで <Tab> キーを押すと、カーソルはリテラルのタブ文字を挿入す
7863+
る代わりに、次のソフトタブストップに移動する。<BS> キーも同様に逆方向
7864+
に動作する。Vim は、この視覚効果を生み出すために、タブ文字とスペース文
7865+
字を最小限に組み合わせて挿入する。
7866+
7867+
この設定は既存のタブ文字の表示には影響しない。
7868+
7869+
値 0 を指定すると、この動作は無効になる。負の値を指定すると、Vim は
7870+
'shiftwidth' を使用する。'sts' と 'shiftwidth' を異なる値で使用する場
7871+
合は、'smarttab' の設定を検討すること。
7872+
7873+
'softtabstop' は、'paste' がオンのときに一時的に 0 に設定され、オフに
7874+
するとリセットされる。'compatible' が設定されている場合もリセットされ
7875+
る。
7876+
7877+
'cpoptions' の 'L' フラグは、'list' が有効な場合のタブの動作を変更す
7878+
る。詳細な説明については、|ins-expandtab| およびユーザーマニュアルのセ
7879+
クション |30.5| も参照。
78707880

78717881
Vim が |+vartabs| 機能付きでコンパイルされている場合、|'varsofttabstop'|
78727882
が空文字列以外の何かに設定されていると 'softtabstop' の値は無視される。
@@ -9322,32 +9332,38 @@ Note 1番目の形式では、行全体がオプション指定に使われる
93229332
'varsofttabstop' 'vsts' 文字列 (既定では "")
93239333
バッファについてローカル
93249334
{|+vartabs| 機能付きでコンパイルされている場合のみ有効}
9325-
<Tab> の挿入や <BS> の使用などの編集における、1 つの <Tab> に相当する
9326-
空白の数のリスト。可変幅の <Tab> が挿入されるように感じられる動作だが、
9327-
実際には空白と <Tab> が混合して使用される。タブ幅はコンマで区切られ、
9328-
最後の値は後ろに続くすべてのタブに適用される。
9335+
可変幅のソフトタブストップを定義する。値は、カラム幅をコンマで区切った
9336+
リストである。各幅は、次のソフトタブストップまでのカラム数を定義する。
9337+
最後の値は無限に繰り返される。
93299338

93309339
例えば、9 列目からステートメントが、41 列目からコメントが始まるアセン
93319340
ブリ言語のファイルを編集する際、以下のように使用すると便利だろう: >
93329341
:set varsofttabstop=8,32,8
9333-
< これは soft tabstop を、8 個および 8 + 32 個、そして以降すべての列に対
9334-
して 8 個の空白に設定する
9342+
< これにより、ソフトタブストップがカラム 8 に設定され、次にカラム 40 (8
9343+
+ 32) に設定され、その後は 8 カラムごとに設定される
93359344

9336-
Note: 'varsofttabstop' が設定されている場合、|'softtabstop'| の値は無
9337-
視される。
9345+
Note: この設定は 'softtabstop' を上書きする。
9346+
Vim がタブとスペースをどのように扱うかの詳細については、ユーザーマニュ
9347+
アルのセクション |30.5| を参照。
93389348

93399349
*'vartabstop'* *'vts'*
93409350
'vartabstop' 'vts' 文字列 (既定では "")
93419351
バッファについてローカル
93429352
{|+vartabs| 機能付きでコンパイルされている場合のみ有効}
9343-
ファイルの中において、1 つの <Tab> に相当する空白の数をコンマで区切っ
9344-
たリスト。それぞれの値は 1 つのタブに対応し、最後の値は後ろに続くすべ
9345-
てのタブに適用される。例: >
9346-
:set vartabstop=4,20,10,8
9347-
< これは最初のタブを 4 個の空白、二つ目を 20 個の空白、三つ目を 10個の空
9348-
白、続くすべてのタブを 8 個の空白に変換する。
9353+
可変幅のタブストップを定義する。値は、カラム幅をコンマで区切ったリスト
9354+
である。各幅は次のタブストップまでのカラム数を定義する。最後の値は無限
9355+
に繰り返される。
9356+
9357+
例: >
9358+
:set vartabstop=4,8
9359+
< これにより、最初のタブストップが行の先頭から 4 カラムに配置され、以降
9360+
のタブストップは 8 カラム間隔で配置される。
93499361

9350-
Note: 'vartabstop' が設定されている場合、|'tabstop'| の値は無視される。
9362+
Note: この設定は 'tabstop' を上書きする。
9363+
UNIXでは、デフォルトの tabstop 値である 8 を維持することを推奨する。代
9364+
わりに 'varsofttabstop' の設定を検討すること。
9365+
Vim がタブとスペースをどのように扱うかについての詳細な説明は、ユーザー
9366+
マニュアルのセクション |30.5| を参照。
93519367

93529368
*'verbose'* *'vbs'*
93539369
'verbose' 'vbs' 数値 (既定では 0)
@@ -9828,6 +9844,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
98289844
'wildoptions' 'wop' 文字列 (既定では "")
98299845
グローバル
98309846
コマンドライン補完 |cmdline-completion| の挙動を変える単語のリスト。
9847+
98319848
以下の値をサポートする:
98329849
fuzzy 補完のマッチ検索にファジーマッチ |fuzzy-matching| を使
98339850
用する。この値が設定された場合、補完でワイルドカード展
@@ -9846,6 +9863,9 @@ Note 1番目の形式では、行全体がオプション指定に使われる
98469863
d #define マクロ
98479864
f 関数
98489865

9866+
このオプションは |ins-completion| には適用されない。詳細は
9867+
'completeopt' を参照。
9868+
98499869
*'winaltkeys'* *'wak'*
98509870
'winaltkeys' 'wak' 文字列 (既定では "menu")
98519871
グローバル

en/options.txt

Lines changed: 52 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 9.1. Last change: 2025 Jun 07
1+
*options.txt* For Vim version 9.1. Last change: 2025 Jun 12
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2043,7 +2043,7 @@ A jump table for the options with a short description can be found at |Q_op|.
20432043
'smartcase' + off no automatic ignore case switch
20442044
'smartindent' + off no smart indentation
20452045
'smarttab' + off no smart tab size
2046-
'softtabstop' + 0 tabs are always 'tabstop' positions
2046+
'softtabstop' + 0 no soft tab stops
20472047
'startofline' + on goto startofline with some commands
20482048
'tagcase' & "followic" 'ignorecase' when searching tags file
20492049
'tagrelative' & off tag file names are not relative
@@ -2249,6 +2249,9 @@ A jump table for the options with a short description can be found at |Q_op|.
22492249
completion in the preview window. Only works in
22502250
combination with "menu" or "menuone".
22512251

2252+
This option does not apply to |cmdline-completion|. See 'wildoptions'
2253+
for that.
2254+
22522255
*'completepopup'* *'cpp'*
22532256
'completepopup' 'cpp' string (default empty)
22542257
global
@@ -7803,11 +7806,13 @@ A jump table for the options with a short description can be found at |Q_op|.
78037806
global
78047807
When enabled, the <Tab> key will indent by 'shiftwidth' if the cursor
78057808
is in leading whitespace. The <BS> key has the opposite effect.
7806-
This behaves as if 'softtabstop' is set to the value of 'shiftwidth'.
7809+
In leading whitespace, this has the same effect as setting
7810+
'softtabstop' to the value of 'shiftwidth'.
78077811
This option is reset when 'compatible' is set; it is temporarily
78087812
disabled when 'paste' is enabled, and restored when 'paste' is turned
78097813
off.
7810-
Have a look at section |30.5| of the user guide for detailed
7814+
NOTE: in most cases, using 'softtabstop' is a better option. Have a
7815+
look at section |30.5| of the user guide for detailed
78117816
explanations on how Vim works with tabs and spaces.
78127817

78137818
*'smoothscroll'* *'sms'* *'nosmoothscroll'* *'nosms'*
@@ -7824,21 +7829,24 @@ A jump table for the options with a short description can be found at |Q_op|.
78247829
*'softtabstop'* *'sts'*
78257830
'softtabstop' 'sts' number (default 0)
78267831
local to buffer
7827-
Number of spaces that a <Tab> counts for while performing editing
7828-
operations, like inserting a <Tab> or using <BS>. It "feels" like
7829-
<Tab>s are being inserted, while in fact a mix of spaces and <Tab>s is
7830-
used. This is useful to keep the 'ts' setting at its standard value
7831-
of 8, while being able to edit like it is set to 'sts'. However,
7832-
commands like "x" still work on the actual characters.
7833-
When 'sts' is zero, this feature is off.
7834-
When 'sts' is negative, the value of 'shiftwidth' is used.
7835-
'softtabstop' is set to 0 when the 'paste' option is set and restored
7836-
when 'paste' is reset.
7837-
See also |ins-expandtab|. When 'expandtab' is not set, the number of
7838-
spaces is minimized by using <Tab>s.
7839-
The 'L' flag in 'cpoptions' changes how tabs are used when 'list' is
7840-
set.
7841-
NOTE: This option is set to 0 when 'compatible' is set.
7832+
Create soft tab stops, separated by 'softtabstop' number of columns.
7833+
In Insert mode, pressing the <Tab> key will move the cursor to the
7834+
next soft tab stop, instead of inserting a literal tab. <BS> behaves
7835+
similarly in reverse. Vim inserts a minimal mix of tab and space
7836+
characters to produce the visual effect.
7837+
7838+
This setting does not affect the display of existing tab characters.
7839+
7840+
A value of 0 disables this behaviour. A negative value makes Vim use
7841+
'shiftwidth'. If you plan to use 'sts' and 'shiftwidth' with
7842+
different values, you might consider setting 'smarttab'.
7843+
7844+
'softtabstop' is temporarily set to 0 when 'paste' is on and reset
7845+
when it is turned off. It is also reset when 'compatible' is set.
7846+
7847+
The 'L' flag in 'cpoptions' alters tab behavior when 'list' is
7848+
enabled. See also |ins-expandtab| ans user manual section |30.5| for
7849+
in-depth explanations.
78427850

78437851
If Vim is compiled with the |+vartabs| feature then the value of
78447852
'softtabstop' will be ignored if |'varsofttabstop'| is set to
@@ -9282,36 +9290,40 @@ A jump table for the options with a short description can be found at |Q_op|.
92829290
local to buffer
92839291
{only available when compiled with the |+vartabs|
92849292
feature}
9285-
A list of the number of spaces that a <Tab> counts for while editing,
9286-
such as inserting a <Tab> or using <BS>. It "feels" like variable-
9287-
width <Tab>s are being inserted, while in fact a mixture of spaces
9288-
and <Tab>s is used. Tab widths are separated with commas, with the
9289-
final value applying to all subsequent tabs.
9293+
Defines variable-width soft tab stops. The value is a comma-separated
9294+
list of widths in columns. Each width defines the number of columns
9295+
before the next soft tab stop. The last value repeats indefinitely.
92909296

92919297
For example, when editing assembly language files where statements
92929298
start in the 9th column and comments in the 41st, it may be useful
92939299
to use the following: >
92949300
:set varsofttabstop=8,32,8
9295-
< This will set soft tabstops with 8 and 8 + 32 spaces, and 8 more
9296-
for every column thereafter.
9301+
< This sets soft tab stops at column 8, then at column 40 (8 + 32), and
9302+
every 8 columns thereafter.
92979303

9298-
Note that the value of |'softtabstop'| will be ignored while
9299-
'varsofttabstop' is set.
9304+
Note: this setting overrides 'softtabstop'.
9305+
See section |30.5| of the user manual for detailed explanations on how
9306+
Vim works with tabs and spaces.
93009307

93019308
*'vartabstop'* *'vts'*
93029309
'vartabstop' 'vts' string (default "")
93039310
local to buffer
93049311
{only available when compiled with the |+vartabs|
93059312
feature}
9306-
A list of the number of spaces that a <Tab> in the file counts for,
9307-
separated by commas. Each value corresponds to one tab, with the
9308-
final value applying to all subsequent tabs. For example: >
9309-
:set vartabstop=4,20,10,8
9310-
< This will make the first tab 4 spaces wide, the second 20 spaces,
9311-
the third 10 spaces, and all following tabs 8 spaces.
9313+
Defines variable-width tab stops. The value is a comma-separated list
9314+
of widths in columns. Each width defines the number of columns
9315+
before the next tab stop; the last value repeats indefinitely.
9316+
9317+
For example: >
9318+
:set vartabstop=4,8
9319+
< This places the first tab stop 4 columns from the start of the line
9320+
and each subsequent tab stop 8 columns apart.
93129321

9313-
Note that the value of |'tabstop'| will be ignored while 'vartabstop'
9314-
is set.
9322+
Note: this setting overrides 'tabstop'.
9323+
On UNIX, it is recommended to keep the default tabstop value of 8.
9324+
Consider setting 'varsofttabstop' instead.
9325+
See section |30.5| of the user manual for detailed explanations on how
9326+
Vim works with tabs and spaces.
93159327

93169328
*'verbose'* *'vbs'*
93179329
'verbose' 'vbs' number (default 0)
@@ -9807,6 +9819,7 @@ A jump table for the options with a short description can be found at |Q_op|.
98079819
'wildoptions' 'wop' string (default "")
98089820
global
98099821
A list of words that change how |cmdline-completion| is done.
9822+
98109823
The following values are supported:
98119824
fuzzy Use |fuzzy-matching| to find completion matches. When
98129825
this value is specified, wildcard expansion will not
@@ -9824,6 +9837,9 @@ A jump table for the options with a short description can be found at |Q_op|.
98249837
d #define
98259838
f function
98269839

9840+
This option does not apply to |ins-completion|. See 'completeopt' for
9841+
that.
9842+
98279843
*'winaltkeys'* *'wak'*
98289844
'winaltkeys' 'wak' string (default "menu")
98299845
global

0 commit comments

Comments
 (0)