Skip to content

Commit 1bf02c2

Browse files
authored
Merge pull request #1700 from vim-jp/hh-update-builtin
Update builtin.{txt,jax}
2 parents 297d351 + 6d985b4 commit 1bf02c2

File tree

2 files changed

+46
-22
lines changed

2 files changed

+46
-22
lines changed

doc/builtin.jax

+23-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim バージョン 9.1. Last change: 2024 Sep 10
1+
*builtin.txt* For Vim バージョン 9.1. Last change: 2024 Sep 23
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -249,8 +249,9 @@ getcharpos({expr}) リスト カーソル、マーク、その他のカーソ
249249
getcharsearch() 辞書 最後の文字検索を取得
250250
getcharstr([{expr}]) 文字列 ユーザーから1文字を取得する
251251
getcmdcompltype() 文字列 現在のコマンドライン補完のタイプを返す
252-
getcmdline() 文字列 現在のコマンドラインを取得
252+
getcmdline() 文字列 現在のコマンドライン入力を取得
253253
getcmdpos() 数値 コマンドラインのカーソル位置を取得
254+
getcmdprompt() 文字列 現在のコマンドラインプロンプトを取得
254255
getcmdscreenpos() 数値 コマンドラインのカーソルのスクリーン位
255256
置を返す
256257
getcmdtype() 文字列 現在のコマンドラインの種類を取得
@@ -3976,21 +3977,21 @@ getcmdcompltype() *getcmdcompltype()*
39763977
コマンドラインが編集時にのみ動作するので、|c_CTRL-e| または
39773978
|c_CTRL-R_=| を使用する必要がある。
39783979
返す文字列については |:command-completion| を参照のこと。
3979-
|getcmdtype()||setcmdpos()||getcmdline()|、|setcmdline()|
3980-
も参照。
3980+
|getcmdtype()|, |setcmdpos()|, |getcmdline()|,
3981+
|getcmdprompt()|, |setcmdline()| も参照。
39813982
補完が定義されていない場合は空文字列を返す。
39823983

39833984
戻り値の型: |String|
39843985

39853986

39863987
getcmdline() *getcmdline()*
3987-
現在のコマンドラインの内容を取得する。コマンドラインを編集して
3988-
いるときのみ動作する。つまり|c_CTRL-\_e|または|c_CTRL-R_=|を使っ
3989-
ているときのみ有効
3988+
現在のコマンドライン入力の内容を取得する。コマンドラインを編集
3989+
しているときのみ動作する。つまり |c_CTRL-\_e| または
3990+
|c_CTRL-R_=| を使っているときのみ有効
39903991
例: >
39913992
:cmap <F7> <C-\>eescape(getcmdline(), ' \')<CR>
3992-
< |getcmdtype()|, |getcmdpos()|, |setcmdpos()| および
3993-
|setcmdline()| も参照。
3993+
< |getcmdtype()|, |getcmdpos()|, |setcmdpos()|, |getcmdprompt()|
3994+
および |setcmdline()| も参照。
39943995
パスワードを入力する時や |inputsecret()| を使う時は空文字列を
39953996
返す。
39963997

@@ -4002,12 +4003,23 @@ getcmdpos() *getcmdpos()*
40024003
の桁は1となる。コマンドラインを編集しているときのみ動作する。
40034004
つまり|c_CTRL-\_e|または|c_CTRL-R_=|または式マッピングを使って
40044005
いるときのみ有効。そうでないときは 0 を返す。
4005-
|getcmdtype()|, |setcmdpos()|, |getcmdline()|, |setcmdline()|
4006-
も参照。
4006+
|getcmdtype()|, |setcmdpos()|, |getcmdline()|,
4007+
|getcmdprompt()|, |setcmdline()| も参照。
40074008

40084009
戻り値の型: |Number|
40094010

40104011

4012+
getcmdprompt() *getcmdprompt()*
4013+
|input()| や |confirm()| の関数を使用時に、現在のコマンドライ
4014+
ンプロンプトを取得する。
4015+
コマンドラインが編集されている場合にのみ動作するため、
4016+
|c_CTRL-\_e| または |c_CTRL-R_=| を使用する必要がある。
4017+
|getcmdtype()|, |getcmdline()|, |getcmdpos()|, |setcmdpos()|,
4018+
および |setcmdline()| も参照。
4019+
4020+
戻り値の型: |String|
4021+
4022+
40114023
getcmdscreenpos() *getcmdscreenpos()*
40124024
コマンドラインのカーソルのスクリーン位置をバイト単位で返す。最
40134025
初の桁は 1 である。

en/builtin.txt

+23-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim version 9.1. Last change: 2024 Sep 10
1+
*builtin.txt* For Vim version 9.1. Last change: 2024 Sep 23
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -232,8 +232,9 @@ getcharsearch() Dict last character search
232232
getcharstr([{expr}]) String get one character from the user
233233
getcmdcompltype() String return the type of the current
234234
command-line completion
235-
getcmdline() String return the current command-line
235+
getcmdline() String return the current command-line input
236236
getcmdpos() Number return cursor position in command-line
237+
getcmdprompt() String return the current command-line prompt
237238
getcmdscreenpos() Number return cursor screen position in
238239
command-line
239240
getcmdtype() String return current command-line type
@@ -3978,21 +3979,21 @@ getcmdcompltype() *getcmdcompltype()*
39783979
Only works when the command line is being edited, thus
39793980
requires use of |c_CTRL-\_e| or |c_CTRL-R_=|.
39803981
See |:command-completion| for the return string.
3981-
Also see |getcmdtype()|, |setcmdpos()|, |getcmdline()| and
3982-
|setcmdline()|.
3982+
Also see |getcmdtype()|, |setcmdpos()|, |getcmdline()|,
3983+
|getcmdprompt()| and |setcmdline()|.
39833984
Returns an empty string when completion is not defined.
39843985

39853986
Return type: |String|
39863987

39873988

39883989
getcmdline() *getcmdline()*
3989-
Return the current command-line. Only works when the command
3990-
line is being edited, thus requires use of |c_CTRL-\_e| or
3991-
|c_CTRL-R_=|.
3990+
Return the current command-line input. Only works when the
3991+
command line is being edited, thus requires use of
3992+
|c_CTRL-\_e| or |c_CTRL-R_=|.
39923993
Example: >
39933994
:cmap <F7> <C-\>eescape(getcmdline(), ' \')<CR>
3994-
< Also see |getcmdtype()|, |getcmdpos()|, |setcmdpos()| and
3995-
|setcmdline()|.
3995+
< Also see |getcmdtype()|, |getcmdpos()|, |setcmdpos()|,
3996+
|getcmdprompt()| and |setcmdline()|.
39963997
Returns an empty string when entering a password or using
39973998
|inputsecret()|.
39983999

@@ -4005,12 +4006,23 @@ getcmdpos() *getcmdpos()*
40054006
Only works when editing the command line, thus requires use of
40064007
|c_CTRL-\_e| or |c_CTRL-R_=| or an expression mapping.
40074008
Returns 0 otherwise.
4008-
Also see |getcmdtype()|, |setcmdpos()|, |getcmdline()| and
4009-
|setcmdline()|.
4009+
Also see |getcmdtype()|, |setcmdpos()|, |getcmdline()|,
4010+
|getcmdprompt()| and |setcmdline()|.
40104011

40114012
Return type: |Number|
40124013

40134014

4015+
getcmdprompt() *getcmdprompt()*
4016+
Return the current command-line prompt when using functions
4017+
like |input()| or |confirm()|.
4018+
Only works when the command line is being edited, thus
4019+
requires use of |c_CTRL-\_e| or |c_CTRL-R_=|.
4020+
Also see |getcmdtype()|, |getcmdline()|, |getcmdpos()|,
4021+
|setcmdpos()| and |setcmdline()|.
4022+
4023+
Return type: |String|
4024+
4025+
40144026
getcmdscreenpos() *getcmdscreenpos()*
40154027
Return the screen position of the cursor in the command line
40164028
as a byte count. The first column is 1.

0 commit comments

Comments
 (0)