comparison runtime/doc/autocmd.txt @ 23165:a916fca16d4b v8.2.2128

patch 8.2.2128: there is no way to do something on CTRL-Z Commit: https://github.com/vim/vim/commit/100118c73ac068137cd298d22953896242752523 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 11 19:30:34 2020 +0100 patch 8.2.2128: there is no way to do something on CTRL-Z Problem: There is no way to do something on CTRL-Z. Solution: Add VimSuspend and VimResume autocommand events. (closes https://github.com/vim/vim/issues/7450)
author Bram Moolenaar <Bram@vim.org>
date Fri, 11 Dec 2020 19:45:04 +0100
parents 99ef85ff1af4
children fab58304f77d
comparison
equal deleted inserted replaced
23164:99ef85ff1af4 23165:a916fca16d4b
303 303
304 |QuitPre| when using `:quit`, before deciding whether to exit 304 |QuitPre| when using `:quit`, before deciding whether to exit
305 |ExitPre| when using a command that may make Vim exit 305 |ExitPre| when using a command that may make Vim exit
306 |VimLeavePre| before exiting Vim, before writing the viminfo file 306 |VimLeavePre| before exiting Vim, before writing the viminfo file
307 |VimLeave| before exiting Vim, after writing the viminfo file 307 |VimLeave| before exiting Vim, after writing the viminfo file
308
309 |VimSuspend| when suspending Vim
310 |VimResume| when Vim is resumed after being suspended
308 311
309 Terminal 312 Terminal
310 |TerminalOpen| after a terminal buffer was created 313 |TerminalOpen| after a terminal buffer was created
311 |TerminalWinOpen| after a terminal buffer was created in a new window 314 |TerminalWinOpen| after a terminal buffer was created in a new window
312 315
1229 To get the exit code use |v:exiting|. 1232 To get the exit code use |v:exiting|.
1230 *VimResized* 1233 *VimResized*
1231 VimResized After the Vim window was resized, thus 'lines' 1234 VimResized After the Vim window was resized, thus 'lines'
1232 and/or 'columns' changed. Not when starting 1235 and/or 'columns' changed. Not when starting
1233 up though. 1236 up though.
1237 *VimResume*
1238 VimResume When the Vim instance is resumed after being
1239 suspended and |VimSuspend| was triggered.
1240 Useful for triggering |:checktime| and ensure
1241 the buffers content did not change while Vim
1242 was suspended: >
1243 :autocmd VimResume * checktime
1244 < *VimSuspend*
1245 VimSuspend When the Vim instance is suspended. Only when
1246 CTRL-Z was typed inside Vim, not when the
1247 SIGSTOP or SIGTSTP signal was sent to Vim.
1234 *WinEnter* 1248 *WinEnter*
1235 WinEnter After entering another window. Not done for 1249 WinEnter After entering another window. Not done for
1236 the first window, when Vim has just started. 1250 the first window, when Vim has just started.
1237 Useful for setting the window height. 1251 Useful for setting the window height.
1238 If the window is for another buffer, Vim 1252 If the window is for another buffer, Vim