comparison runtime/doc/autocmd.txt @ 26117:d4d9c7c55a5f v8.2.3591

patch 8.2.3591: no event is triggered when closing a window Commit: https://github.com/vim/vim/commit/23beefed73aadb243fb67cf944e3d60fe8c038bb Author: naohiro ono <obcat@icloud.com> Date: Sat Nov 13 12:38:49 2021 +0000 patch 8.2.3591: no event is triggered when closing a window Problem: No event is triggered when closing a window. Solution: Add the WinClosed event. (Naohiro Ono, closes https://github.com/vim/vim/issues/9110)
author Bram Moolenaar <Bram@vim.org>
date Sat, 13 Nov 2021 13:45:03 +0100
parents 6b39ab99e367
children 786b2a8ec970
comparison
equal deleted inserted replaced
26116:9007076c18da 26117:d4d9c7c55a5f
346 |CursorMoved| the cursor was moved in Normal mode 346 |CursorMoved| the cursor was moved in Normal mode
347 |CursorMovedI| the cursor was moved in Insert mode 347 |CursorMovedI| the cursor was moved in Insert mode
348 348
349 |WinNew| after creating a new window 349 |WinNew| after creating a new window
350 |TabNew| after creating a new tab page 350 |TabNew| after creating a new tab page
351 |WinClosed| after closing a window
351 |TabClosed| after closing a tab page 352 |TabClosed| after closing a tab page
352 |WinEnter| after entering another window 353 |WinEnter| after entering another window
353 |WinLeave| before leaving a window 354 |WinLeave| before leaving a window
354 |TabEnter| after entering another tab page 355 |TabEnter| after entering another tab page
355 |TabLeave| before leaving a tab page 356 |TabLeave| before leaving a tab page
1278 :autocmd VimResume * checktime 1279 :autocmd VimResume * checktime
1279 < *VimSuspend* 1280 < *VimSuspend*
1280 VimSuspend When the Vim instance is suspended. Only when 1281 VimSuspend When the Vim instance is suspended. Only when
1281 CTRL-Z was typed inside Vim, not when the 1282 CTRL-Z was typed inside Vim, not when the
1282 SIGSTOP or SIGTSTP signal was sent to Vim. 1283 SIGSTOP or SIGTSTP signal was sent to Vim.
1284 *WinClosed*
1285 WinClosed After closing a window. The pattern is
1286 matched against the |window-ID|. Both
1287 <amatch> and <afile> are set to the
1288 |window-ID|. Non-recursive (event cannot
1289 trigger itself).
1283 *WinEnter* 1290 *WinEnter*
1284 WinEnter After entering another window. Not done for 1291 WinEnter After entering another window. Not done for
1285 the first window, when Vim has just started. 1292 the first window, when Vim has just started.
1286 Useful for setting the window height. 1293 Useful for setting the window height.
1287 If the window is for another buffer, Vim 1294 If the window is for another buffer, Vim