Skip to content

Commit e9a66ce

Browse files
authored
Merge pull request #1639 from vim-jp/hh-update-options
Update options.{txt,jax}
2 parents c685513 + 4f974eb commit e9a66ce

File tree

2 files changed

+56
-20
lines changed

2 files changed

+56
-20
lines changed

doc/options.jax

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim バージョン 9.1. Last change: 2024 Jul 09
1+
*options.txt* For Vim バージョン 9.1. Last change: 2024 Jul 28
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -97,7 +97,7 @@ Vimには、特別な働きをさせるための多くの内部変数とスイ
9797
:se[t] {option}:{value}
9898
数値および文字列オプションの値を {value} に設定する。
9999
数値オプションの値は、10進数、(0x を頭に付けて) 16進数、
100-
または ('0' を頭に付けて) 8進数で指定できる。
100+
または ('0' か '0o' を頭に付けて) 8進数で指定できる。
101101
オプション 'wildchar' で指定された文字 (既定では
102102
<Tab>、オプション 'compatible' がオンならば CTRL-E)
103103
を打ち込むと、古い値を挿入できる。固定された構文と名前
@@ -2297,7 +2297,9 @@ Note 1番目の形式では、行全体がオプション指定に使われる
22972297
'preserveindent' も参照。
22982298

22992299
*'cpoptions'* *'cpo'* *cpo*
2300-
'cpoptions' 'cpo' 文字列 (Vimの既定値: "aABceFs", Viの既定値: 全フラグ)
2300+
'cpoptions' 'cpo' 文字列 (Vimの既定値: "aABceFsz",
2301+
Viの既定値: "#{|&/\." を除く全てのフラグ
2302+
|$VIM_POSIX|: 全てのフラグ)
23012303
グローバル
23022304
1文字のフラグの列で設定する。フラグが設定されると、対応する動作がVi互
23032305
換になる。大部分、またはある程度のVi互換が求められるときに使われる。
@@ -2521,6 +2523,9 @@ Note 1番目の形式では、行全体がオプション指定に使われる
25212523
*cpo-Z*
25222524
Z オプション 'readonly' がオンになっているのに "w!" をし
25232525
たとき 'readonly' をオフにしない。
2526+
*cpo-z*
2527+
z "cw" および "d" コマンドの特殊ケース (|cw| および
2528+
|d-special| を参照)。
25242529
*cpo-!*
25252530
! フィルタコマンドをリドゥするとき、何であってもとにかく
25262531
最後に実行された外部コマンドを使う。これが含まれないと、
@@ -6216,7 +6221,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
62166221
:set path+=
62176222
< 環境変数を使うには、その中の区切り文字を変える必要があるだろう。次のも
62186223
のは環境変数 $INCL を追加する例だが、その中ではディレクトリ名はセミコ
6219-
ロン ';' で区切られているとする。 >
6224+
ロンで区切られているとする。 >
62206225
:let &path = &path .. "," .. substitute($INCL, ';', ',', 'g')
62216226
< 文字 ';' を ':' または指定可能な区切り文字で置換する。 Note この方法
62226227
は、$INCL がコンマや空白を含んでいるときには使えないので注意。
@@ -6768,7 +6773,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
67686773
import/ `:import` によって探されるファイル
67696774
indent/ インデントスクリプト |indent-expression|
67706775
keymap/ キーマップ定義ファイル |mbyte-keymap|
6771-
lang/ 翻訳版メニュー |:menutrans|
6776+
lang/ 翻訳版メッセージ |:menutrans| および |multi-lang|
67726777
menu.vim GUI版メニュー |menu.vim|
67736778
pack/ パッケージ |:packadd|
67746779
plugin/ プラグインスクリプト |write-plugin|
@@ -8139,6 +8144,19 @@ Note 1番目の形式では、行全体がオプション指定に使われる
81398144
バッファにはコピーされない。
81408145
通常のファイル名文字だけが使える。"/\*?[|<>" は不正である。
81418146

8147+
*'tabclose'* *'tcl'*
8148+
'tabclose' 'tcl' 文字列 (既定では "")
8149+
グローバル
8150+
このオプションは、タブページを閉じるときの動作を制御する (例:
8151+
|:tabclose| を使用)。空の場合、Vim は次 (右) のタブページに移動する。
8152+
8153+
可能な値 (コンマ区切りのリスト):
8154+
left 含まれている場合、次のタブページではなく前のタブページ
8155+
に移動する。
8156+
uselast 含まれている場合、可能であれば以前に使用したタブページ
8157+
に移動する。このオプションは他のオプションよりも優先さ
8158+
れる。
8159+
81428160
*'tabline'* *'tal'*
81438161
'tabline' 'tal' 文字列 (既定では "")
81448162
グローバル

en/options.txt

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 9.1. Last change: 2024 Jul 09
1+
*options.txt* For Vim version 9.1. Last change: 2024 Jul 28
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -76,7 +76,8 @@ achieve special effects. These options come in three forms:
7676
:se[t] {option}:{value}
7777
Set string or number option to {value}.
7878
For numeric options the value can be given in decimal,
79-
hex (preceded with 0x) or octal (preceded with '0').
79+
hex (preceded with 0x) or octal (preceded with '0' or
80+
'0o').
8081
The old value can be inserted by typing 'wildchar' (by
8182
default this is a <Tab> or CTRL-E if 'compatible' is
8283
set). Many string options with fixed syntax and names
@@ -1476,7 +1477,7 @@ A jump table for the options with a short description can be found at |Q_op|.
14761477
applying 'breakindent', even if the resulting
14771478
text should normally be narrower. This prevents
14781479
text indented almost to the right window border
1479-
occupying lot of vertical space when broken.
1480+
occupying lots of vertical space when broken.
14801481
(default: 20)
14811482
shift:{n} After applying 'breakindent', the wrapped line's
14821483
beginning will be shifted by the given number of
@@ -2257,8 +2258,9 @@ A jump table for the options with a short description can be found at |Q_op|.
22572258
Also see 'preserveindent'.
22582259

22592260
*'cpoptions'* *'cpo'* *cpo*
2260-
'cpoptions' 'cpo' string (Vim default: "aABceFs",
2261-
Vi default: all flags)
2261+
'cpoptions' 'cpo' string (Vim default: "aABceFsz",
2262+
Vi default: all flags, except "#{|&/\."
2263+
|$VIM_POSIX|: all flags)
22622264
global
22632265
A sequence of single character flags. When a character is present
22642266
this indicates Vi-compatible behavior. This is used for things where
@@ -2486,6 +2488,9 @@ A jump table for the options with a short description can be found at |Q_op|.
24862488
*cpo-Z*
24872489
Z When using "w!" while the 'readonly' option is set,
24882490
don't reset 'readonly'.
2491+
*cpo-z*
2492+
z Special casing the "cw" and "d" command (see |cw| and
2493+
|d-special|).
24892494
*cpo-!*
24902495
! When redoing a filter command, use the last used
24912496
external command, whatever it was. Otherwise the last
@@ -4727,7 +4732,7 @@ A jump table for the options with a short description can be found at |Q_op|.
47274732
in Insert mode as specified with the 'indentkeys' option.
47284733
When this option is not empty, it overrules the 'cindent' and
47294734
'smartindent' indenting. When 'lisp' is set, this option is
4730-
is only used when 'lispoptions' contains "expr:1".
4735+
only used when 'lispoptions' contains "expr:1".
47314736
When 'paste' is set this option is not used for indenting.
47324737
The expression is evaluated with |v:lnum| set to the line number for
47334738
which the indent is to be computed. The cursor is also in this line
@@ -5090,7 +5095,7 @@ A jump table for the options with a short description can be found at |Q_op|.
50905095
part can be in one of two forms:
50915096
1. A list of pairs. Each pair is a "from" character immediately
50925097
followed by the "to" character. Examples: "aA", "aAbBcC".
5093-
2. A list of "from" characters, a semi-colon and a list of "to"
5098+
2. A list of "from" characters, a semicolon and a list of "to"
50945099
characters. Example: "abc;ABC"
50955100
Example: "aA,fgh;FGH,cCdDeE"
50965101
Special characters need to be preceded with a backslash. These are
@@ -5172,7 +5177,7 @@ A jump table for the options with a short description can be found at |Q_op|.
51725177
update use |:redraw|.
51735178
This may occasionally cause display errors. It is only meant to be set
51745179
temporarily when performing an operation where redrawing may cause
5175-
flickering or cause a slow down.
5180+
flickering or cause a slowdown.
51765181

51775182
*'linebreak'* *'lbr'* *'nolinebreak'* *'nolbr'*
51785183
'linebreak' 'lbr' boolean (default off)
@@ -5914,17 +5919,17 @@ A jump table for the options with a short description can be found at |Q_op|.
59145919
Using CTRL-X on "0" or CTRL-A on "18446744073709551615"
59155920
(2^64 - 1) has no effect, overflow is prevented.
59165921
blank If included, treat numbers as signed or unsigned based on
5917-
preceding whitespace. If a number with a leading dash has its
5922+
preceding whitespace. If a number with a leading dash has its
59185923
dash immediately preceded by a non-whitespace character (i.e.,
59195924
not a tab or a " "), the negative sign won't be considered as
59205925
part of the number. For example:
59215926
Using CTRL-A on "14" in "Carbon-14" results in "Carbon-15"
59225927
(without "blank" it would become "Carbon-13").
59235928
Using CTRL-X on "8" in "Carbon -8" results in "Carbon -9"
5924-
(because -8 is preceded by whitespace. If "unsigned" was
5929+
(because -8 is preceded by whitespace. If "unsigned" was
59255930
set, it would result in "Carbon -7").
59265931
If this format is included, overflow is prevented as if
5927-
"unsigned" were set. If both this format and "unsigned" are
5932+
"unsigned" were set. If both this format and "unsigned" are
59285933
included, "unsigned" will take precedence.
59295934

59305935
Numbers which simply begin with a digit in the range 1-9 are always
@@ -6174,7 +6179,7 @@ A jump table for the options with a short description can be found at |Q_op|.
61746179
:set path+=
61756180
< To use an environment variable, you probably need to replace the
61766181
separator. Here is an example to append $INCL, in which directory
6177-
names are separated with a semi-colon: >
6182+
names are separated with a semicolon: >
61786183
:let &path = &path .. "," .. substitute($INCL, ';', ',', 'g')
61796184
< Replace the ';' with a ':' or whatever separator is used. Note that
61806185
this doesn't work when $INCL contains a comma or white space.
@@ -6753,7 +6758,7 @@ A jump table for the options with a short description can be found at |Q_op|.
67536758
import/ files that are found by `:import`
67546759
indent/ indent scripts |indent-expression|
67556760
keymap/ key mapping files |mbyte-keymap|
6756-
lang/ menu translations |:menutrans|
6761+
lang/ message translations |:menutrans| and |multi-lang|
67576762
menu.vim GUI menus |menu.vim|
67586763
pack/ packages |:packadd|
67596764
plugin/ plugin scripts |write-plugin|
@@ -7241,7 +7246,7 @@ A jump table for the options with a short description can be found at |Q_op|.
72417246
POSIX default: "AS")
72427247
global *E1336*
72437248
This option helps to avoid all the |hit-enter| prompts caused by file
7244-
messages, for example with CTRL-G, and to avoid some other messages.
7249+
messages, for example with CTRL-G, and to avoid some other messages.
72457250
It is a list of flags:
72467251
flag meaning when present ~
72477252
f use "(3 of 5)" instead of "(file 3 of 5)" *shm-f*
@@ -7698,7 +7703,7 @@ A jump table for the options with a short description can be found at |Q_op|.
76987703
minus two.
76997704

77007705
timeout:{millisec} Limit the time searching for suggestions to
7701-
{millisec} milli seconds. Applies to the following
7706+
{millisec} milliseconds. Applies to the following
77027707
methods. When omitted the limit is 5000. When
77037708
negative there is no limit. {only works when built
77047709
with the |+reltime| feature}
@@ -8100,6 +8105,19 @@ A jump table for the options with a short description can be found at |Q_op|.
81008105
'S' flag in 'cpoptions'.
81018106
Only normal file name characters can be used, "/\*?[|<>" are illegal.
81028107

8108+
*'tabclose'* *'tcl'*
8109+
'tabclose' 'tcl' string (default "")
8110+
global
8111+
This option controls the behavior when closing tab pages (e.g., using
8112+
|:tabclose|). When empty Vim goes to the next (right) tab page.
8113+
8114+
Possible values (comma-separated list):
8115+
left If included, go to the previous tab page instead of
8116+
the next one.
8117+
uselast If included, go to the previously used tab page if
8118+
possible. This option takes precedence over the
8119+
others.
8120+
81038121
*'tabline'* *'tal'*
81048122
'tabline' 'tal' string (default empty)
81058123
global

0 commit comments

Comments
 (0)