Skip to content

Commit 94282ac

Browse files
authored
Merge pull request #1493 from vim-jp/hh-update-builtin
Update builtin.{txt,jax}
2 parents def3821 + dcb2d54 commit 94282ac

File tree

2 files changed

+38
-38
lines changed

2 files changed

+38
-38
lines changed

doc/builtin.jax

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim バージョン 9.1. Last change: 2024 Apr 04
1+
*builtin.txt* For Vim バージョン 9.1. Last change: 2024 Apr 07
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -238,11 +238,11 @@ getbufvar({buf}, {varname} [, {def}])
238238
任意 バッファ{buf}の変数 {varname}
239239
getcellwidths() リスト 文字のセル幅の上書き設定を取得
240240
getchangelist([{buf}]) リスト 変更リスト要素のリスト
241-
getchar([expr]) 数値/文字列 ユーザーから1文字を取得する
241+
getchar([{expr}]) 数値/文字列 ユーザーから1文字を取得する
242242
getcharmod() 数値 修飾キーの状態を表す数値を取得
243243
getcharpos({expr}) リスト カーソル、マーク、その他のカーソル位置
244244
getcharsearch() 辞書 最後の文字検索を取得
245-
getcharstr([expr]) 文字列 ユーザーから1文字を取得する
245+
getcharstr([{expr}]) 文字列 ユーザーから1文字を取得する
246246
getcmdcompltype() 文字列 現在のコマンドライン補完のタイプを返す
247247
getcmdline() 文字列 現在のコマンドラインを取得
248248
getcmdpos() 数値 コマンドラインのカーソル位置を取得
@@ -424,7 +424,7 @@ menu_info({name} [, {mode}]) 辞書 メニューの項目情報を取得する
424424
min({expr}) 数値 {expr}内の要素の最小値
425425
mkdir({name} [, {flags} [, {prot}]])
426426
数値 ディレクトリ{name}を作成
427-
mode([expr]) 文字列 現在の編集モード
427+
mode([{expr}]) 文字列 現在の編集モード
428428
mzeval({expr}) 任意 |MzScheme| の式を評価する
429429
nextnonblank({lnum}) 数値 {lnum}行目以降で空行でない行の行番号
430430
nr2char({expr} [, {utf8}]) 文字列 ASCII/UTF-8コード{expr}で示される文字
@@ -762,7 +762,7 @@ test_override({expr}, {val}) なし Vimの内部処理を置き換えてテス
762762
test_refcount({expr}) 数値 {expr}の参照カウントを取得
763763
test_setmouse({row}, {col}) なし テスト用にマウス位置を設定する
764764
test_settime({expr}) なし テスト用に現在の時刻を設定する
765-
test_srand_seed([seed]) なし srand() のテスト用に種を設定する
765+
test_srand_seed([{seed}]) なし srand() のテスト用に種を設定する
766766
test_unknown() 任意 テスト用のunknown値
767767
test_void() 任意 テスト用のvoid値
768768
timer_info([{id}]) リスト タイマーに関する情報
@@ -793,7 +793,7 @@ virtcol({expr} [, {list} [, {winid}])
793793
カーソルまたはマークのスクリーン桁
794794
virtcol2col({winid}, {lnum}, {col})
795795
数値 スクリーン上の文字のバイトインデックス
796-
visualmode([expr]) 文字列 最後に使われたビジュアルモード
796+
visualmode([{expr}]) 文字列 最後に使われたビジュアルモード
797797
wildmenumode() 数値 'wildmenu' モードが有効かどうか
798798
win_execute({id}, {command} [, {silent}])
799799
文字列 ウィンドウ{id}で{command}を実行する
@@ -3451,29 +3451,29 @@ getchangelist([{buf}]) *getchangelist()*
34513451
|method| としても使用できる: >
34523452
GetBufnr()->getchangelist()
34533453

3454-
getchar([expr]) *getchar()*
3454+
getchar([{expr}]) *getchar()*
34553455
ユーザーまたは入力ストリームから1文字を取得する。
3456-
[expr] が省略された場合、1文字を取得できるまで待つ。
3457-
[expr] が0の場合、1文字を取得できる時だけ取得する。取得できな
3456+
{expr} が省略された場合、1文字を取得できるまで待つ。
3457+
{expr} が0の場合、1文字を取得できる時だけ取得する。取得できな
34583458
い時は0を返す。
3459-
[expr] が1の場合は、1文字を取得できるかを判定するだけである。
3459+
{expr} が1の場合は、1文字を取得できるかを判定するだけである。
34603460
入力は消費されない。取得できないと判定された時は0を返
34613461
す。
34623462
常に文字列として取得したい場合は |getcharstr()| を使用する。
34633463

3464-
[expr] が省略されたときや [expr] が0のときは、文字全体または特
3464+
{expr} が省略されたときや {expr} が0のときは、文字全体または特
34653465
殊キーを返す。それが1文字なら戻り値は数値である。これを文字列
34663466
に戻すには |nr2char()| を使う。それ以外の場合にはエンコードし
34673467
て文字列にして返す。
34683468
特殊キーとは0x80(10進数で128)で始まるバイト列からなる文字列で
34693469
ある。これは文字列 "\<Key>" と同じ値である(例: "\<Left>")。戻
34703470
り値は文字列であり、修飾キー(shift, control, alt)は含まれない。
34713471

3472-
[expr] が0や Esc が入力された場合は、これがエスケープシーケン
3472+
{expr} が0や Esc が入力された場合は、これがエスケープシーケン
34733473
スの始まりであるかどうかをVimが知るために待つ間、短い遅延があ
34743474
るだろう。
34753475

3476-
[expr] が1のときは最初のバイトだけを返す。1バイト文字の場合、
3476+
{expr} が1のときは最初のバイトだけを返す。1バイト文字の場合、
34773477
これはその文字そのものを表す数値である。これを文字列に変換する
34783478
にはnr2char()を使う。
34793479

@@ -3578,12 +3578,12 @@ getcharsearch() *getcharsearch()*
35783578
:nnoremap <expr> , getcharsearch().forward ? ',' : ';'
35793579
< |setcharsearch()|も参照。
35803580

3581-
getcharstr([expr]) *getcharstr()*
3581+
getcharstr([{expr}]) *getcharstr()*
35823582
ユーザーまたは入力ストリームから1文字を文字列として取得する。
3583-
[expr] が省略された場合、1文字を取得できるまで待つ。
3584-
[expr] が0もしくは偽の場合、1文字を取得できる時だけ取得する。
3583+
{expr} が省略された場合、1文字を取得できるまで待つ。
3584+
{expr} が0もしくは偽の場合、1文字を取得できる時だけ取得する。
35853585
取得できない時は空文字列を返す。
3586-
[expr] が1もしくは真の場合は、1文字を取得できるかを判定するだ
3586+
{expr} が1もしくは真の場合は、1文字を取得できるかを判定するだ
35873587
けである。入力は消費されない。取得できないと判定された
35883588
時は空文字列を返す。
35893589
結果の数値が文字列に変換される以外は |getchar()| と同様に動作
@@ -6539,8 +6539,8 @@ mkdir({name} [, {flags} [, {prot}]])
65396539
GetName()->mkdir()
65406540
<
65416541
*mode()*
6542-
mode([expr]) 現在のモードを示す文字列を返す。
6543-
[expr] に 0 でない数値か空でない文字列 (|non-zero-arg|) を指定
6542+
mode([{expr}]) 現在のモードを示す文字列を返す。
6543+
{expr} に 0 でない数値か空でない文字列 (|non-zero-arg|) を指定
65446544
した場合、フルモードが返される。それ以外の場合は最初の一文字だ
65456545
けが返される。
65466546
|state()| も参照。

en/builtin.txt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim version 9.1. Last change: 2024 Apr 04
1+
*builtin.txt* For Vim version 9.1. Last change: 2024 Apr 07
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -220,12 +220,12 @@ getbufvar({buf}, {varname} [, {def}])
220220
any variable {varname} in buffer {buf}
221221
getcellwidths() List get character cell width overrides
222222
getchangelist([{buf}]) List list of change list items
223-
getchar([expr]) Number or String
223+
getchar([{expr}]) Number or String
224224
get one character from the user
225225
getcharmod() Number modifiers for the last typed character
226226
getcharpos({expr}) List position of cursor, mark, etc.
227227
getcharsearch() Dict last character search
228-
getcharstr([expr]) String get one character from the user
228+
getcharstr([{expr}]) String get one character from the user
229229
getcmdcompltype() String return the type of the current
230230
command-line completion
231231
getcmdline() String return the current command-line
@@ -398,7 +398,7 @@ menu_info({name} [, {mode}]) Dict get menu item information
398398
min({expr}) Number minimum value of items in {expr}
399399
mkdir({name} [, {flags} [, {prot}]])
400400
Number create directory {name}
401-
mode([expr]) String current editing mode
401+
mode([{expr}]) String current editing mode
402402
mzeval({expr}) any evaluate |MzScheme| expression
403403
nextnonblank({lnum}) Number line nr of non-blank line >= {lnum}
404404
nr2char({expr} [, {utf8}]) String single char with ASCII/UTF-8 value {expr}
@@ -699,7 +699,7 @@ test_override({expr}, {val}) none test with Vim internal overrides
699699
test_refcount({expr}) Number get the reference count of {expr}
700700
test_setmouse({row}, {col}) none set the mouse position for testing
701701
test_settime({expr}) none set current time for testing
702-
test_srand_seed([seed]) none set seed for testing srand()
702+
test_srand_seed([{seed}]) none set seed for testing srand()
703703
test_unknown() any unknown value for testing
704704
test_void() any void value for testing
705705
timer_info([{id}]) List information about timers
@@ -729,7 +729,7 @@ virtcol({expr} [, {list} [, {winid}])
729729
screen column of cursor or mark
730730
virtcol2col({winid}, {lnum}, {col})
731731
Number byte index of a character on screen
732-
visualmode([expr]) String last visual mode used
732+
visualmode([{expr}]) String last visual mode used
733733
wildmenumode() Number whether 'wildmenu' mode is active
734734
win_execute({id}, {command} [, {silent}])
735735
String execute {command} in window {id}
@@ -3455,16 +3455,16 @@ getchangelist([{buf}]) *getchangelist()*
34553455
Can also be used as a |method|: >
34563456
GetBufnr()->getchangelist()
34573457
3458-
getchar([expr]) *getchar()*
3458+
getchar([{expr}]) *getchar()*
34593459
Get a single character from the user or input stream.
3460-
If [expr] is omitted, wait until a character is available.
3461-
If [expr] is 0, only get a character when one is available.
3460+
If {expr} is omitted, wait until a character is available.
3461+
If {expr} is 0, only get a character when one is available.
34623462
Return zero otherwise.
3463-
If [expr] is 1, only check if a character is available, it is
3463+
If {expr} is 1, only check if a character is available, it is
34643464
not consumed. Return zero if no character available.
34653465
If you prefer always getting a string use |getcharstr()|.
34663466

3467-
Without [expr] and when [expr] is 0 a whole character or
3467+
Without {expr} and when {expr} is 0 a whole character or
34683468
special key is returned. If it is a single character, the
34693469
result is a Number. Use |nr2char()| to convert it to a String.
34703470
Otherwise a String is returned with the encoded character.
@@ -3474,11 +3474,11 @@ getchar([expr]) *getchar()*
34743474
also a String when a modifier (shift, control, alt) was used
34753475
that is not included in the character.
34763476

3477-
When [expr] is 0 and Esc is typed, there will be a short delay
3477+
When {expr} is 0 and Esc is typed, there will be a short delay
34783478
while Vim waits to see if this is the start of an escape
34793479
sequence.
34803480

3481-
When [expr] is 1 only the first byte is returned. For a
3481+
When {expr} is 1 only the first byte is returned. For a
34823482
one-byte character it is the character itself as a number.
34833483
Use nr2char() to convert it to a String.
34843484

@@ -3589,13 +3589,13 @@ getcharsearch() *getcharsearch()*
35893589
< Also see |setcharsearch()|.
35903590

35913591

3592-
getcharstr([expr]) *getcharstr()*
3592+
getcharstr([{expr}]) *getcharstr()*
35933593
Get a single character from the user or input stream as a
35943594
string.
3595-
If [expr] is omitted, wait until a character is available.
3596-
If [expr] is 0 or false, only get a character when one is
3595+
If {expr} is omitted, wait until a character is available.
3596+
If {expr} is 0 or false, only get a character when one is
35973597
available. Return an empty string otherwise.
3598-
If [expr] is 1 or true, only check if a character is
3598+
If {expr} is 1 or true, only check if a character is
35993599
available, it is not consumed. Return an empty string
36003600
if no character is available.
36013601
Otherwise this works like |getchar()|, except that a number
@@ -6648,8 +6648,8 @@ mkdir({name} [, {flags} [, {prot}]])
66486648
GetName()->mkdir()
66496649
<
66506650
*mode()*
6651-
mode([expr]) Return a string that indicates the current mode.
6652-
If [expr] is supplied and it evaluates to a non-zero Number or
6651+
mode([{expr}]) Return a string that indicates the current mode.
6652+
If {expr} is supplied and it evaluates to a non-zero Number or
66536653
a non-empty String (|non-zero-arg|), then the full mode is
66546654
returned, otherwise only the first letter is returned.
66556655
Also see |state()|.

0 commit comments

Comments
 (0)