Skip to content

Commit 322c34a

Browse files
authored
Merge pull request #825 from tsuyoshicho/update/function-20200524
Update {cmdline,insert,map,popup,repeat}.{txt,jax}
2 parents e52dcbc + f362581 commit 322c34a

File tree

10 files changed

+86
-30
lines changed

10 files changed

+86
-30
lines changed

doc/cmdline.jax

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*cmdline.txt* For Vim バージョン 8.2. Last change: 2020 Feb 29
1+
*cmdline.txt* For Vim バージョン 8.2. Last change: 2020 Apr 23
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -590,6 +590,7 @@ Exコマンドはいくつかの特徴を持っている。
590590
:tcl
591591
:tcldo
592592
:tclfile
593+
:terminal
593594
:vglobal
594595
:windo
595596
:write !

doc/insert.jax

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*insert.txt* For Vim バージョン 8.2. Last change: 2020 Mar 25
1+
*insert.txt* For Vim バージョン 8.2. Last change: 2020 Apr 30
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -639,8 +639,10 @@ Note: CTRL-Xモードでの有効なキーはマップされない。これは "
639639
を終了させるキー(つまりCTRL-Xモードのコマンドとして有効ではないキー)はマップさ
640640
れる。'complete' を使って補完をするとき、マップは通常通りに適用される。
641641

642-
Note: 補完が動作中は、再帰的に挿入モードに入ることはできない。":normal i.." の
643-
ようなマッピングを使うとエラー E523 が発生する。
642+
*E578* *E565*
643+
Note: 補完が動作中は、再帰的に挿入モードに入ることはできず、バッファのテキスト
644+
の変更もできない。":normal i.." を呼び出すようなマッピングを使うとエラー
645+
E565 が発生する。
644646

645647
次のマッピングは補完コマンドのタイピングをちょっとだけ楽にしようと提案された
646648
(これらは他のコマンドを覆い隠してしまうけれど): >

doc/map.jax

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim バージョン 8.2. Last change: 2019 Dec 19
1+
*map.txt* For Vim バージョン 8.2. Last change: 2020 Apr 23
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1464,7 +1464,7 @@ Note これらの引数は省略できますが、これは廃止される機能
14641464
*<bang>*
14651465
<bang> ('-bang' 属性を参照) コマンドが ! 修飾子付きで実行された場合に
14661466
! に置換されます。指定なしの場合は空文字列になります。
1467-
*<mods>*
1467+
*<mods>* *:command-modifiers*
14681468
<mods> 指定されている場合はコマンド修飾子。されていない場合は何も展開
14691469
しません。対応している修飾子は以下の通り:
14701470
|:aboveleft|, |:belowright|,

doc/popup.jax

+21-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*popup.txt* For Vim バージョン 8.2. Last change: 2020 Mar 21
1+
*popup.txt* For Vim バージョン 8.2. Last change: 2020 May 18
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -152,6 +152,7 @@ Exコマンドの出力のために画面がスクロールアップすると、
152152
- ジョブが終了すると、ポップアップウィンドウは閉じられる。
153153
- ポップアップウィンドウは `popup_close()` で閉じることができ、端末バッファで
154154
あれば隠した状態になる。
155+
- 2つ目の端末のポップアップを開くことは不可能。 *E861*
155156
- Pmenu の既定の色は、枠とパディングのみに用いられる。 端末自身の色を変えるに
156157
は端末のハイライトグループを端末作成前に設定する。後から 'wincolor' を設定し
157158
ても動作するが、端末内のプログラムが全てを再描画する必要がある。
@@ -198,6 +199,7 @@ Exコマンドの出力のために画面がスクロールアップすると、
198199
|popup_getoptions()| ポップアップの現在のオプションを取得する
199200
|popup_getpos()| ポップアップの実際の位置とサイズを取得する
200201
|popup_locate()| 画面位置でポップアップウィンドウを見つける
202+
|popup_list()| すべてのポップアップのリストを取得する
201203

202204

203205
詳細 *popup-function-details*
@@ -236,8 +238,15 @@ popup_beval({what}, {options}) *popup_beval()*
236238
GetText()->popup_beval({})
237239
<
238240
*popup_clear()*
239-
popup_clear() 不作法にふるまうプラグインに対する緊急の解決策: グローバルポッ
241+
popup_clear([{force}])
242+
不作法にふるまうプラグインに対する緊急の解決策: グローバルポッ
240243
プアップとカレントタブポップアップをすべて閉じる。
244+
閉じられる時にコールバックは呼び出されない。
245+
{force} が設定されていないなら、カレントウィンドウがポップアッ
246+
プの時に失敗する。
247+
{force} が設定されてそれが |TRUE| なら、カレントウィンドウが
248+
ポップアップになっていても閉じられる。ポップアップで端末が動作
249+
しているなら強制終了される。
241250

242251

243252
popup_close({id} [, {result}]) *popup_close()*
@@ -421,6 +430,9 @@ popup_hide({id}) *popup_hide()*
421430
|method| としても使用できる: >
422431
GetPopup()->popup_hide()
423432
433+
popup_list() *popup_list()*
434+
存在する全ポップアップの |window-ID| のリストを返す。
435+
424436
popup_locate({row}, {col}) *popup_locate()*
425437
画面位置 {row} および {col} のポップアップの |window-ID| を返
426438
す。複数のポップアップがある場合、最も高い zindex のポップアッ
@@ -540,6 +552,8 @@ popup_setoptions({id}, {options}) *popup_setoptions()*
540552
wrap
541553
zindex
542554
|popup_move()| からのオプションも使用できる。
555+
一般的に、設定のオプション値がゼロもしくは空文字列だと値をデ
556+
フォルト値にリセットするが、例外がある。
543557
"hidden" のために |popup_hide()||popup_show()| を使用する。
544558
"tabpage" は変更できない。
545559

@@ -583,16 +597,16 @@ popup_create() に渡す。
583597
|popup_create()| の第2引数は任意の辞書である:
584598
line ポップアップを配置する画面の行。数値または、カーソルの
585599
行を使用して行数を加算または減算するには、"cursor"、
586-
"cursor+1"、または "cursor-1" を使用できる。省略した場
587-
合、ポップアップは垂直方向の中央に配置される。最初の行
588-
は1である
600+
"cursor+1"、または "cursor-1" を使用できる。省略もしく
601+
はゼロの場合、ポップアップは垂直方向の中央に配置され
602+
る。最初の行は1である
589603
"textprop" を使用する場合、数値はテキストプロパティに
590604
関連していて、負の値にすることができる。
591605
col ポップアップを配置する画面の桁。数値または、カーソルの
592606
桁を使用するには "cursor" を使用し、桁を加算または減算
593607
するには "cursor+9" または "cursor-9" が使用できる。省
594-
略した場合、ポップアップは水平方向の中央に配置される。
595-
最初の桁は1である。
608+
略もしくはゼロの場合、ポップアップは水平方向の中央に配
609+
置される。最初の桁は1である。
596610
"textprop" を使用する場合、数値はテキストプロパティに
597611
関連していて、負の値にすることができる。
598612
pos "topleft"、"topright"、"botleft" または "botright":

doc/repeat.jax

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*repeat.txt* For Vim バージョン 8.2. Last change: 2019 Dec 07
1+
*repeat.txt* For Vim バージョン 8.2. Last change: 2020 May 14
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -123,6 +123,11 @@ q{0-9a-zA-Z"} タイプした文字をレジスタ{0-9a-zA-Z"}にレコーデ
123123
れたマクロのものになり、|y| でコピーを行うと記録された
124124
マクロを上書きしてしまうからである。
125125

126+
Note: あなたのタイプ中にレコーディングしたとき、マッピ
127+
ングがあればそれ由来のキーが記録され、それが再生され
128+
る。それは例えば、アンドゥのようにコマンドがタイプされ
129+
たときだけ同期するような場合に重要である。
130+
126131
q レコーディングを終了する。(実装のメモ: レコーディング
127132
を終了する 'q' は、それがマッピングの結果であってもレ
128133
ジスタに記録されない)
@@ -133,6 +138,8 @@ q レコーディングを終了する。(実装のメモ: レコーディン
133138
タネートファイルの名前) は使用できない。
134139
レジスタはマッピングと同様に実行される。つまり、
135140
'wildchar''wildcharm' の違いが動作に影響する。
141+
そして同じ方法でアンドゥをしても、動作が同期しないかも
142+
しれない。
136143
"@=" を使用すると式を入力するためのプロンプトが表示さ
137144
れ、そこに入力した式の評価結果が実行される。
138145
|@:| も参照。
@@ -153,6 +160,10 @@ q レコーディングを終了する。(実装のメモ: レコーディン
153160
":@=" には最後に評価された式が使用される。式の評価結果
154161
がExコマンドとして実行される。
155162
これらのコマンド内ではマッピングは行われない。
163+
レジスタに行指向テキストが格納され、行の先頭が行継続
164+
|line-continuation| 文字 (\) が置かれていた時、前の行
165+
と連結される。これは Vim script の一部をヤンクして実行
166+
するときに便利である。
156167
将来: 指定された範囲の各々の行に対してレジスタの内容が
157168
実行されるだろう。
158169

@@ -161,7 +172,7 @@ q レコーディングを終了する。(実装のメモ: レコーディン
161172
に設定する(省略した場合現在の行)。
162173

163174
:[addr]@ *:@@*
164-
:[addr]@@ 最後の :@{0-9a-z"} を繰り返す。まず最初にカーソルを
175+
:[addr]@@ 最後の :@{register} を繰り返す。まず最初にカーソルを
165176
[addr]行に設定する(省略した場合現在の行)。
166177

167178
==============================================================================

en/cmdline.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*cmdline.txt* For Vim version 8.2. Last change: 2020 Feb 29
1+
*cmdline.txt* For Vim version 8.2. Last change: 2020 Apr 23
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -615,6 +615,7 @@ followed by another Vim command:
615615
:tcl
616616
:tcldo
617617
:tclfile
618+
:terminal
618619
:vglobal
619620
:windo
620621
:write !

en/insert.txt

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*insert.txt* For Vim version 8.2. Last change: 2020 Mar 25
1+
*insert.txt* For Vim version 8.2. Last change: 2020 Apr 30
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -666,8 +666,10 @@ Note: The keys that are valid in CTRL-X mode are not mapped. This allows for
666666
ends CTRL-X mode (any key that is not a valid CTRL-X mode command) is mapped.
667667
Also, when doing completion with 'complete' mappings apply as usual.
668668

669-
Note: While completion is active Insert mode can't be used recursively.
670-
Mappings that somehow invoke ":normal i.." will generate an E523 error.
669+
*E578* *E565*
670+
Note: While completion is active Insert mode can't be used recursively and
671+
buffer text cannot be changed. Mappings that somehow invoke ":normal i.."
672+
will generate an E565 error.
671673

672674
The following mappings are suggested to make typing the completion commands
673675
a bit easier (although they will hide other commands): >

en/map.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim version 8.2. Last change: 2019 Dec 19
1+
*map.txt* For Vim version 8.2. Last change: 2020 Apr 23
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1492,7 +1492,7 @@ The valid escape sequences are
14921492
<bang> (See the '-bang' attribute) Expands to a ! if the
14931493
command was executed with a ! modifier, otherwise
14941494
expands to nothing.
1495-
*<mods>*
1495+
*<mods>* *:command-modifiers*
14961496
<mods> The command modifiers, if specified. Otherwise, expands to
14971497
nothing. Supported modifiers are |:aboveleft|, |:belowright|,
14981498
|:botright|, |:browse|, |:confirm|, |:hide|, |:keepalt|,

en/popup.txt

+21-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*popup.txt* For Vim version 8.2. Last change: 2020 Mar 21
1+
*popup.txt* For Vim version 8.2. Last change: 2020 May 18
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -150,6 +150,7 @@ different: *E863*
150150
- When the job ends, the popup window closes.
151151
- The popup window can be closed with `popup_close()`, the terminal buffer
152152
then becomes hidden.
153+
- It is not possible to open a second popup window with a terminal. *E861*
153154
- The default Pmenu color is only used for the border and padding. To change
154155
the color of the terminal itself set the Terminal highlight group before
155156
creating the terminal. Setting 'wincolor' later can work but requires the
@@ -197,6 +198,7 @@ Other:
197198
|popup_getoptions()| get current options for a popup
198199
|popup_getpos()| get actual position and size of a popup
199200
|popup_locate()| find popup window at a screen position
201+
|popup_list()| get list of all popups
200202

201203

202204
DETAILS *popup-function-details*
@@ -235,8 +237,15 @@ popup_beval({what}, {options}) *popup_beval()*
235237
GetText()->popup_beval({})
236238
<
237239
*popup_clear()*
238-
popup_clear() Emergency solution to a misbehaving plugin: close all popup
240+
popup_clear([{force}])
241+
Emergency solution to a misbehaving plugin: close all popup
239242
windows for the current tab and global popups.
243+
Close callbacks are not invoked.
244+
When {force} is not present this will fail if the current
245+
window is a popup.
246+
When {force} is present and |TRUE| the popup is also closed
247+
when it is the current window. If a terminal is running in a
248+
popup it is killed.
240249

241250

242251
popup_close({id} [, {result}]) *popup_close()*
@@ -415,6 +424,10 @@ popup_hide({id}) *popup_hide()*
415424
Can also be used as a |method|: >
416425
GetPopup()->popup_hide()
417426
427+
popup_list() *popup_list()*
428+
Return a List with the |window-ID| of all existing popups.
429+
430+
418431
popup_locate({row}, {col}) *popup_locate()*
419432
Return the |window-ID| of the popup at screen position {row}
420433
and {col}. If there are multiple popups the one with the
@@ -535,6 +548,8 @@ popup_setoptions({id}, {options}) *popup_setoptions()*
535548
wrap
536549
zindex
537550
The options from |popup_move()| can also be used.
551+
Generally, setting an option to zero or an empty string resets
552+
it to the default value, but there are exceptions.
538553
For "hidden" use |popup_hide()| and |popup_show()|.
539554
"tabpage" cannot be changed.
540555

@@ -579,15 +594,15 @@ The second argument of |popup_create()| is a dictionary with options:
579594
line Screen line where to position the popup. Can use a
580595
number or "cursor", "cursor+1" or "cursor-1" to use
581596
the line of the cursor and add or subtract a number of
582-
lines. If omitted the popup is vertically centered.
583-
The first line is 1.
597+
lines. If omitted or zero the popup is vertically
598+
centered. The first line is 1.
584599
When using "textprop" the number is relative to the
585600
text property and can be negative.
586601
col Screen column where to position the popup. Can use a
587602
number or "cursor" to use the column of the cursor,
588603
"cursor+9" or "cursor-9" to add or subtract a number
589-
of columns. If omitted the popup is horizontally
590-
centered. The first column is 1.
604+
of columns. If omitted or zero the popup is
605+
horizontally centered. The first column is 1.
591606
When using "textprop" the number is relative to the
592607
text property and can be negative.
593608
pos "topleft", "topright", "botleft" or "botright":

en/repeat.txt

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*repeat.txt* For Vim version 8.2. Last change: 2019 Dec 07
1+
*repeat.txt* For Vim version 8.2. Last change: 2020 May 14
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -126,6 +126,11 @@ q{0-9a-zA-Z"} Record typed characters into register {0-9a-zA-Z"}
126126
recorded macro and the yank will overwrite the
127127
recorded macro.
128128

129+
Note: The recording happens while you type, replaying
130+
the register happens as if the keys come from a
131+
mapping. This matters, for example, for undo, which
132+
only syncs when commands were typed.
133+
129134
q Stops recording. (Implementation note: The 'q' that
130135
stops recording is not stored in the register, unless
131136
it was the result of a mapping)
@@ -137,7 +142,7 @@ q Stops recording. (Implementation note: The 'q' that
137142
used.
138143
The register is executed like a mapping, that means
139144
that the difference between 'wildchar' and 'wildcharm'
140-
applies.
145+
applies, and undo might not be synced in the same way.
141146
For "@=" you are prompted to enter an expression. The
142147
result of the expression is then executed.
143148
See also |@:|.
@@ -158,6 +163,11 @@ q Stops recording. (Implementation note: The 'q' that
158163
result of evaluating the expression is executed as an
159164
Ex command.
160165
Mappings are not recognized in these commands.
166+
When the |line-continuation| character (\) is present
167+
at the beginning of a line in a linewise register,
168+
then it is combined with the previous line. This is
169+
useful for yanking and executing parts of a Vim
170+
script.
161171
Future: Will execute the register for each line in the
162172
address range.
163173

@@ -166,7 +176,7 @@ q Stops recording. (Implementation note: The 'q' that
166176
[addr] (default is current line).
167177

168178
:[addr]@ *:@@*
169-
:[addr]@@ Repeat the previous :@{0-9a-z"}. First set cursor at
179+
:[addr]@@ Repeat the previous :@{register}. First set cursor at
170180
line [addr] (default is current line).
171181

172182
==============================================================================

0 commit comments

Comments
 (0)