File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
- *popup.txt* For Vim バージョン 8.2. Last change: 2022 Jan 08
1
+ *popup.txt* For Vim バージョン 8.2. Last change: 2022 Apr 04
2
2
3
3
4
4
VIMリファレンスマニュアル by Bram Moolenaar
@@ -273,6 +273,12 @@ popup_create({what}, {options}) *popup_create()*
273
273
されたバッファが作成される。ポップアップを閉じると、そのバッ
274
274
ファは消去される。
275
275
276
+ {what} がバッファ番号で、バッファのロードが既存のスワップファ
277
+ イルと衝突した場合、| SwapExists | 自動コマンドが | v:swapchoice |
278
+ を 'o' に設定したかのように、読み取り専用でサイレントに開かれ
279
+ る。これは、バッファが表示にのみ使用されると想定しているためで
280
+ ある。
281
+
276
282
{options} は多くのエントリがある辞書である。
277
283
詳細は | popup_create-arguments | を参照。
278
284
Original file line number Diff line number Diff line change 1
- *popup.txt* For Vim version 8.2. Last change: 2022 Jan 08
1
+ *popup.txt* For Vim version 8.2. Last change: 2022 Apr 04
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -271,6 +271,11 @@ popup_create({what}, {options}) *popup_create()*
271
271
'buftype' set to "popup". That buffer will be wiped out once
272
272
the popup closes.
273
273
274
+ if {what} is a buffer number and loading the buffer runs into
275
+ an existing swap file, it is silently opened read-only, as if
276
+ a | SwapExists | autocommand had set | v:swapchoice | to 'o'.
277
+ This is because we assume the buffer is only used for viewing.
278
+
274
279
{options} is a dictionary with many possible entries.
275
280
See | popup_create-arguments | for details.
276
281
You can’t perform that action at this time.
0 commit comments