Skip to content

Commit 9128c18

Browse files
authored
Merge pull request #888 from tsuyoshicho/update/cmd-opt-20210223
Update {cmdline,options}.{txt,jax}
2 parents 6719107 + bf4e27a commit 9128c18

File tree

4 files changed

+91
-33
lines changed

4 files changed

+91
-33
lines changed

doc/cmdline.jax

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*cmdline.txt* For Vim バージョン 8.2. Last change: 2020 Sep 14
1+
*cmdline.txt* For Vim バージョン 8.2. Last change: 2021 Jan 26
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -800,7 +800,7 @@ Exコマンドの、ファイル名が使えるところでは、以下の文字
800800
# 代替ファイル名に置き換えられる。 *:_#* *c_#*
801801
これはウィンドウごとに記憶される。
802802
#n (ここで n は数) バッファ n のファイル名に置き *:_#0* *:_#n*
803-
換えられる。"#0" は "#" と同じ。 *c_#n*
803+
換えられる。"#0" は "#" と同じ。 *c_#n*
804804
## 引数リスト内の全てのファイル名を、空白で区切って *:_##* *c_##*
805805
列挙したものに置き換えられる。ファイル名の中の空白には、
806806
全て前に '\' が付けられる。
@@ -809,6 +809,16 @@ Exコマンドの、ファイル名が使えるところでは、以下の文字
809809
この番号については |:oldfiles||v:oldfiles| を参照。
810810
*E809*
811811
{|+eval||+viminfo| 機能つきでコンパイルされたときのみ有効}
812+
|Vim9-script| では # がコメントの開始に使われるため、%% を代替ファイル名として
813+
使う:
814+
% カレントファイル名に置き換えられる。
815+
%% 代替ファイル名に置き換えられる。 *:_%%* *c_%%*
816+
%%n (ここで n は数) バッファ n のファイル名に置き *:_%%0* *:_%%n*
817+
換えられる。"%%0" は "%%" と同じ。 *c_%%n*
818+
%%% 引数リスト内の全てのファイル名を、空白で区切っ *:_%%%* *c_%%%#*
819+
て列挙したものに置き換えられる。
820+
%%<n (n は > 0 の数値)。 *:_%%<* *c_%%<*
821+
n 番目の old file 名に置き換えられる。
812822

813823
Note: "#<n" 以外は、ユーザーに打ち込まれた通りのファイル名を与えることに注意
814824
{訳注: 普通、カレントディレクトリのファイルは、パスを付けずにファイル名のみを
@@ -1039,7 +1049,7 @@ Note: ファイル名が来る筈の所では、ワイルドカードの展開
10391049
コマンドラインウィンドウでは、普通のウィンドウでテキストを編集するのと同じよう
10401050
にコマンドラインを編集できる。コマンドラインウィンドウは特殊なウィンドウで、普
10411051
通の方法でそこから出ることはできない。
1042-
{Vimが |+cmdline_hist| 機能付きでコンパイルされたときのみ有効である。}
1052+
{Vimが |+cmdwin| 機能付きでコンパイルされたときのみ有効である。}
10431053

10441054

10451055
開 始 *c_CTRL-F* *q:* *q/* *q?*

doc/options.jax

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim バージョン 8.2. Last change: 2020 Dec 21
1+
*options.txt* For Vim バージョン 8.2. Last change: 2021 Feb 13
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -474,7 +474,7 @@ Note 展開されるオプションの値の長さ制限に注意。システム
474474
CTRL-? CTRL-H
475475
CTRL-?以外 CTRL-?
476476

477-
(CTRL-? は8進数で 0177、16進数で 0x7f)
477+
(CTRL-? は8進数で 0o177、16進数で 0x7f)
478478

479479
ターミナルのデリートキーのキーコードが違っているが、バッ
480480
クスペースのキーコードは正しいときは、次のコマンドをファ
@@ -1615,7 +1615,11 @@ Note 1番目の形式では、行全体がオプション指定に使われる
16151615
{VimのGUIバージョンか |+xterm_clipboard| 機能付きでコ
16161616
ンパイルされたもののみ有効}
16171617
コンマ区切りのキーワードのリストを指定する。
1618-
認識されるのは、以下のキーワードである。
1618+
Note: 要素の1つとして "exclude:" がある場合、要素を後ろに追加すること
1619+
はできない。従って += で後方への要素の追加ではなく ^= を使って前方への
1620+
追加をする。例: >
1621+
set clipboard^=unnamed
1622+
< 認識されるのは、以下のキーワードである。
16191623

16201624
*clipboard-unnamed*
16211625
unnamed これが含まれると、コピー、削除、変更、ペーストなどの操
@@ -2694,6 +2698,8 @@ Note 1番目の形式では、行全体がオプション指定に使われる
26942698
foldcolumn:{n} 差分モードの開始時にオプション 'foldcolumn' を
26952699
{n}に設定する。
26962700

2701+
followwrap 'wrap' オプションにそのまま従う。
2702+
26972703
internal 内部diffライブラリを使用する。'diffexpr' が設
26982704
定されている場合は無視される。 *E960*
26992705
バッファを書き込むときにメモリが不足すると、こ
@@ -3252,7 +3258,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
32523258
通常のファイル名文字だけが使える。"/\*?[|<>" は不正である。
32533259

32543260
*'fillchars'* *'fcs'*
3255-
'fillchars' 'fcs' 文字列 (既定では "vert:|,fold:-")
3261+
'fillchars' 'fcs' 文字列 (既定では "vert:|,fold:-,eob:~")
32563262
グローバル
32573263
{|+folding| 機能付きでコンパイルされたときのみ有効}
32583264
ステータス行と垂直分割の区切りを埋める文字を設定する。値にはキーワード
@@ -3263,7 +3269,11 @@ Note 1番目の形式では、行全体がオプション指定に使われる
32633269
stlnc:文字 ' ' か '=' 非カレントウィンドウのステータス行
32643270
vert:文字 '|' 垂直分割の区切り |:vsplit|
32653271
fold:文字 '-' 'foldtext' での空白部分
3272+
foldopen:文字 '-' 折り畳みの先頭のマーク
3273+
foldclose:文字'+' 閉じられた折り畳みのマーク
3274+
foldsep:文字 '|' 開いた折り畳みの中間文字
32663275
diff:文字 '-' 'diff' での削除された行
3276+
eob:文字 '~' バッファ終端以降の空行
32673277

32683278
指定されなかったキーワードについては、既定値が使われる。"stl" と
32693279
"stlnc" には、強調表示が行われているときは空白が、行われていないときは
@@ -3283,6 +3293,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
32833293
vert:文字 VertSplit |hl-VertSplit|
32843294
fold:文字 Folded |hl-Folded|
32853295
diff:文字 DiffDelete |hl-DiffDelete|
3296+
eob:文字 EndOfBuffer |hl-EndOfBuffer|
32863297

32873298
*'fixendofline'* *'fixeol'* *'nofixendofline'* *'nofixeol'*
32883299
'fixendofline' 'fixeol' 切替 (既定ではオン)
@@ -3295,7 +3306,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
32953306
オプション 'endofline' を参照。
32963307

32973308
*'fkmap'* *'fk'* *'nofkmap'* *'nofk'*
3298-
'fkmap' 'fk' 切替 (既定ではオフ) *E198*
3309+
'fkmap' 'fk' 切替 (既定ではオフ)
32993310
グローバル
33003311
{|+rightleft| 機能付きでコンパイルされたときのみ有効}
33013312
このオプションはペルシア語を使うためのもので、削除された。|farsi.txt|
@@ -4892,7 +4903,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
48924903

48934904
*'listchars'* *'lcs'*
48944905
'listchars' 'lcs' 文字列 (既定では "eol:$")
4895-
グローバル
4906+
グローバル/ウィンドウについてローカル |global-local|
48964907
'list' モードと |:list| コマンドでの表示に使われる文字を設定する。値は
48974908
指定文字列のコンマ区切りのリストである。
48984909
*lcs-eol*
@@ -4923,7 +4934,12 @@ Note 1番目の形式では、行全体がオプション指定に使われる
49234934
*lcs-space*
49244935
space:文字 スペースの表示に使われる文字。指定されないと、スペース
49254936
は空白のまま。
4926-
*lcs-trail*
4937+
*lcs-lead*
4938+
lead:文字 先頭のスペースの表示に使われる文字。指定されないと、先
4939+
頭のスペースは空白のまま。行頭のスペースでは "space"
4940+
の設定を上書きする。"tab:" と組み合せられる、例えば: >
4941+
:set listchars+=tab:>-,lead:.
4942+
< *lcs-trail*
49274943
trail:文字 行末のスペースの表示に使われる文字。指定されないと、行
49284944
末のスペースは空白のまま。行末のスペースでは "space"
49294945
の設定を上書きする。
@@ -5255,7 +5271,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
52555271
NOTE: このオプションは 'compatible' がオンになるとViの既定値に設定され、
52565272
'compatible' がオフになるとVimの既定値に設定されるので注意。
52575273

5258-
*'mouse'* *E538*
5274+
*'mouse'*
52595275
'mouse' 文字列 (既定では "", GUI版とWin32では "a",
52605276
|defaults.vim| 内で "a" か "nvi" に設定される)
52615277
グローバル
@@ -6235,7 +6251,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
62356251
<
62366252
*'runtimepath'* *'rtp'* *vimfiles*
62376253
'runtimepath' 'rtp' 文字列 (既定値:
6238-
Unix: "$HOME/.vim,
6254+
Unix: "$HOME/.vim,
62396255
$VIM/vimfiles,
62406256
$VIMRUNTIME,
62416257
$VIM/vimfiles/after,
@@ -6245,7 +6261,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
62456261
$VIMRUNTIME,
62466262
$VIM/vimfiles/after,
62476263
home:vimfiles/after"
6248-
PC: "$HOME/vimfiles,
6264+
MS-Windows: "$HOME/vimfiles,
62496265
$VIM/vimfiles,
62506266
$VIMRUNTIME,
62516267
$VIM/vimfiles/after,
@@ -6257,8 +6273,8 @@ Note 1番目の形式では、行全体がオプション指定に使われる
62576273
$VIM/vimfiles,
62586274
$VIMRUNTIME,
62596275
$VIM/vimfiles/after,
6260-
$BE_USER_SETTINGS/vim/after")
6261-
VMS: "sys$login:vimfiles,
6276+
$BE_USER_SETTINGS/vim/after"
6277+
VMS: "sys$login:vimfiles,
62626278
$VIM/vimfiles,
62636279
$VIMRUNTIME,
62646280
$VIM/vimfiles/after,
@@ -6330,9 +6346,12 @@ Note 1番目の形式では、行全体がオプション指定に使われる
63306346
'scroll' 'scr' 数値 (既定では、ウィンドウ高の半分)
63316347
ウィンドウについてローカル
63326348
コマンド CTRL-U や CTRL-D でスクロールする行数。ウィンドウのサイズが変
6333-
わると、ウィンドウの行数の半分に設定される。CTRL-U や CTRL-D を、カウ
6334-
ントを指定して使うと、カウントはオプション 'scroll' の値として使われる。
6335-
":set scroll=0" とすると、値はウィンドウ高の半分に戻る。
6349+
わると、ウィンドウの行数の半分に設定される。'scroll' オプションを設定
6350+
した後で、|status-line| か 'tabline' オプションを有効にした場合におき
6351+
る。
6352+
CTRL-U や CTRL-D を、カウントを指定して使うと、カウントはオプション
6353+
'scroll' の値として使われる。":set scroll=0" とすると、値はウィンドウ
6354+
高の半分に戻る。
63366355

63376356
*'scrollbind'* *'scb'* *'noscrollbind'* *'noscb'*
63386357
'scrollbind' 'scb' 切替 (既定ではオフ)

en/cmdline.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*cmdline.txt* For Vim version 8.2. Last change: 2020 Sep 14
1+
*cmdline.txt* For Vim version 8.2. Last change: 2021 Jan 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -849,6 +849,16 @@ function |expand()|.
849849
file name n. See |:oldfiles| or |v:oldfiles| to get the
850850
number. *E809*
851851
{only when compiled with the |+eval| and |+viminfo| features}
852+
In |Vim9-script| # is used to start a comment, use %% for the alternate file
853+
name:
854+
% Is replaced with the current file name.
855+
%% Is replaced with the alternate file name. *:_%%* *c_%%*
856+
%%n (where n is a number) is replaced with *:_%%0* *:_%%n*
857+
the file name of buffer n. "%%0" is the same as "%%". *c_%%n*
858+
%%% Is replaced with all names in the argument *:_%%%* *c_%%%#*
859+
list concatenated, separated by spaces.
860+
%%<n (where n is a number > 0) is replaced with old *:_%%<* *c_%%<*
861+
file name n.
852862

853863
Note that these, except "#<n", give the file name as it was typed. If an
854864
absolute path is needed (when using the file name from a different directory),
@@ -1086,7 +1096,7 @@ Also see |`=|.
10861096
In the command-line window the command line can be edited just like editing
10871097
text in any window. It is a special kind of window, because you cannot leave
10881098
it in a normal way.
1089-
{not available when compiled without the |+cmdline_hist| feature}
1099+
{not available when compiled without the |+cmdwin| feature}
10901100

10911101

10921102
OPEN *c_CTRL-F* *q:* *q/* *q?*

en/options.txt

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 8.2. Last change: 2020 Dec 21
1+
*options.txt* For Vim version 8.2. Last change: 2021 Feb 13
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -438,7 +438,7 @@ the system, mostly it is something like 256 or 1024 characters.
438438
CTRL-? CTRL-H
439439
not CTRL-? CTRL-?
440440

441-
(CTRL-? is 0177 octal, 0x7f hex)
441+
(CTRL-? is 0o177 octal, 0x7f hex)
442442

443443
If your delete key terminal code is wrong, but the
444444
code for backspace is alright, you can put this in
@@ -1568,7 +1568,11 @@ A jump table for the options with a short description can be found at |Q_op|.
15681568
{only in GUI versions or when the |+xterm_clipboard|
15691569
feature is included}
15701570
This option is a list of comma separated names.
1571-
These names are recognized:
1571+
Note: if one of the items is "exclude:", then you can't add an item
1572+
after that. Therefore do append an item with += but use ^= to
1573+
prepend, e.g.: >
1574+
set clipboard^=unnamed
1575+
< These names are recognized:
15721576

15731577
*clipboard-unnamed*
15741578
unnamed When included, Vim will use the clipboard register '*'
@@ -2677,6 +2681,8 @@ A jump table for the options with a short description can be found at |Q_op|.
26772681
foldcolumn:{n} Set the 'foldcolumn' option to {n} when
26782682
starting diff mode. Without this 2 is used.
26792683

2684+
followwrap Follow the 'wrap' option and leave as it is.
2685+
26802686
internal Use the internal diff library. This is
26812687
ignored when 'diffexpr' is set. *E960*
26822688
When running out of memory when writing a
@@ -3229,7 +3235,7 @@ A jump table for the options with a short description can be found at |Q_op|.
32293235
Only normal file name characters can be used, "/\*?[|<>" are illegal.
32303236

32313237
*'fillchars'* *'fcs'*
3232-
'fillchars' 'fcs' string (default "vert:|,fold:-")
3238+
'fillchars' 'fcs' string (default "vert:|,fold:-,eob:~")
32333239
global
32343240
{not available when compiled without the |+folding|
32353241
feature}
@@ -3241,7 +3247,11 @@ A jump table for the options with a short description can be found at |Q_op|.
32413247
stlnc:c ' ' or '=' statusline of the non-current windows
32423248
vert:c '|' vertical separators |:vsplit|
32433249
fold:c '-' filling 'foldtext'
3250+
foldopen:c '-' mark the beginning of a fold
3251+
foldclose:c '+' show a closed fold
3252+
foldsep:c '|' open fold middle character
32443253
diff:c '-' deleted lines of the 'diff' option
3254+
eob:c '~' empty lines below the end of a buffer
32453255

32463256
Any one that is omitted will fall back to the default. For "stl" and
32473257
"stlnc" the space will be used when there is highlighting, '^' or '='
@@ -3261,6 +3271,7 @@ A jump table for the options with a short description can be found at |Q_op|.
32613271
vert:c VertSplit |hl-VertSplit|
32623272
fold:c Folded |hl-Folded|
32633273
diff:c DiffDelete |hl-DiffDelete|
3274+
eob:c EndOfBuffer |hl-EndOfBuffer|
32643275

32653276
*'fixendofline'* *'fixeol'* *'nofixendofline'* *'nofixeol'*
32663277
'fixendofline' 'fixeol' boolean (default on)
@@ -3273,7 +3284,7 @@ A jump table for the options with a short description can be found at |Q_op|.
32733284
See the 'endofline' option.
32743285

32753286
*'fkmap'* *'fk'* *'nofkmap'* *'nofk'*
3276-
'fkmap' 'fk' boolean (default off) *E198*
3287+
'fkmap' 'fk' boolean (default off)
32773288
global
32783289
{only available when compiled with the |+rightleft|
32793290
feature}
@@ -4846,7 +4857,7 @@ A jump table for the options with a short description can be found at |Q_op|.
48464857

48474858
*'listchars'* *'lcs'*
48484859
'listchars' 'lcs' string (default "eol:$")
4849-
global
4860+
global or local to window |global-local|
48504861
Strings to use in 'list' mode and for the |:list| command. It is a
48514862
comma separated list of string settings.
48524863
*lcs-eol*
@@ -4877,7 +4888,13 @@ A jump table for the options with a short description can be found at |Q_op|.
48774888
*lcs-space*
48784889
space:c Character to show for a space. When omitted, spaces
48794890
are left blank.
4880-
*lcs-trail*
4891+
*lcs-lead*
4892+
lead:c Character to show for leading spaces. When omitted,
4893+
leading spaces are blank. Overrides the "space"
4894+
setting for leading spaces. You can combine it with
4895+
"tab:", for example: >
4896+
:set listchars+=tab:>-,lead:.
4897+
< *lcs-trail*
48814898
trail:c Character to show for trailing spaces. When omitted,
48824899
trailing spaces are blank. Overrides the "space"
48834900
setting for trailing spaces.
@@ -5221,7 +5238,7 @@ A jump table for the options with a short description can be found at |Q_op|.
52215238
NOTE: This option is set to the Vi default value when 'compatible' is
52225239
set and to the Vim default value when 'compatible' is reset.
52235240

5224-
*'mouse'* *E538*
5241+
*'mouse'*
52255242
'mouse' string (default "", "a" for GUI and Win32,
52265243
set to "a" or "nvi" in |defaults.vim|)
52275244
global
@@ -6226,7 +6243,7 @@ A jump table for the options with a short description can be found at |Q_op|.
62266243
<
62276244
*'runtimepath'* *'rtp'* *vimfiles*
62286245
'runtimepath' 'rtp' string (default:
6229-
Unix: "$HOME/.vim,
6246+
Unix: "$HOME/.vim,
62306247
$VIM/vimfiles,
62316248
$VIMRUNTIME,
62326249
$VIM/vimfiles/after,
@@ -6236,7 +6253,7 @@ A jump table for the options with a short description can be found at |Q_op|.
62366253
$VIMRUNTIME,
62376254
$VIM/vimfiles/after,
62386255
home:vimfiles/after"
6239-
PC: "$HOME/vimfiles,
6256+
MS-Windows: "$HOME/vimfiles,
62406257
$VIM/vimfiles,
62416258
$VIMRUNTIME,
62426259
$VIM/vimfiles/after,
@@ -6248,8 +6265,8 @@ A jump table for the options with a short description can be found at |Q_op|.
62486265
$VIM/vimfiles,
62496266
$VIMRUNTIME,
62506267
$VIM/vimfiles/after,
6251-
$BE_USER_SETTINGS/vim/after")
6252-
VMS: "sys$login:vimfiles,
6268+
$BE_USER_SETTINGS/vim/after"
6269+
VMS: "sys$login:vimfiles,
62536270
$VIM/vimfiles,
62546271
$VIMRUNTIME,
62556272
$VIM/vimfiles/after,
@@ -6321,7 +6338,9 @@ A jump table for the options with a short description can be found at |Q_op|.
63216338
local to window
63226339
Number of lines to scroll with CTRL-U and CTRL-D commands. Will be
63236340
set to half the number of lines in the window when the window size
6324-
changes. If you give a count to the CTRL-U or CTRL-D command it will
6341+
changes. This may happen when enabling the |status-line| or
6342+
'tabline' option after setting the 'scroll' option.
6343+
If you give a count to the CTRL-U or CTRL-D command it will
63256344
be used as the new value for 'scroll'. Reset to half the window
63266345
height with ":set scroll=0".
63276346

0 commit comments

Comments
 (0)