File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
- *autocmd.txt* For Vim バージョン 9.1. Last change: 2024 Jul 17
1
+ *autocmd.txt* For Vim バージョン 9.1. Last change: 2024 Aug 12
2
2
3
3
4
4
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1402,10 +1402,12 @@ WinLeave ウィンドウを離れる前。次に入るウィンドウで他の
1402
1402
":qa" や "q" でVimを終了するときには発生しない。
1403
1403
1404
1404
*WinNewPre*
1405
- WinNewPre 新しいウィンドウを作成する前。分割または、新し
1406
- いタブページを作成してウィンドウレイアウトを変
1407
- 更するコマンドの前にトリガーされる。Vim が起動
1408
- したばかりの最初のウィンドウでは行われない。
1405
+ WinNewPre 新しいウィンドウを作成する前。分割を作成して
1406
+ ウィンドウレイアウトを変更するコマンドの前にト
1407
+ リガーされる。
1408
+ ウィンドウ構造が未初期化だと大抵は安全ではない
1409
+ ため、タブページの作成や最初のウィンドウの場合
1410
+ は実行されない。
1409
1411
WinNewPre イベントのコマンドの実行中にウィンド
1410
1412
ウレイアウトを変更することはできない。
1411
1413
カレントウィンドウのレイアウトを保存し、ウィン
Original file line number Diff line number Diff line change 1
- *autocmd.txt* For Vim version 9.1. Last change: 2024 Jul 17
1
+ *autocmd.txt* For Vim version 9.1. Last change: 2024 Aug 12
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1427,8 +1427,10 @@ WinLeave Before leaving a window. If the window to be
1427
1427
*WinNewPre*
1428
1428
WinNewPre Before creating a new window. Triggered
1429
1429
before commands that modify window layout by
1430
- creating a split or new tab page. Not done for
1431
- the first window, when Vim has just started.
1430
+ creating a split.
1431
+ Not done when creating tab pages and for the
1432
+ first window, as the window structure is not
1433
+ initialized yet and so is generally not safe.
1432
1434
It is not allowed to modify window layout
1433
1435
while executing commands for the WinNewPre
1434
1436
event.
You can’t perform that action at this time.
0 commit comments