diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-11 19:30:34 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-11 19:30:34 +0100 |
commit | 100118c73ac068137cd298d22953896242752523 (patch) | |
tree | 4d9312af425ba7ccfd334237df32980d0f6ab8d6 /runtime/doc/autocmd.txt | |
parent | 1b884a0053982335f644eec6c71027706bf3c522 (diff) | |
download | vim-git-100118c73ac068137cd298d22953896242752523.tar.gz |
patch 8.2.2128: there is no way to do something on CTRL-Zv8.2.2128
Problem: There is no way to do something on CTRL-Z.
Solution: Add VimSuspend and VimResume autocommand events. (closes #7450)
Diffstat (limited to 'runtime/doc/autocmd.txt')
-rw-r--r-- | runtime/doc/autocmd.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index 3b376274c..a29c5dd58 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -306,6 +306,9 @@ Name triggered by ~ |VimLeavePre| before exiting Vim, before writing the viminfo file |VimLeave| before exiting Vim, after writing the viminfo file +|VimSuspend| when suspending Vim +|VimResume| when Vim is resumed after being suspended + Terminal |TerminalOpen| after a terminal buffer was created |TerminalWinOpen| after a terminal buffer was created in a new window @@ -1231,6 +1234,17 @@ VimLeavePre Before exiting Vim, just before writing the VimResized After the Vim window was resized, thus 'lines' and/or 'columns' changed. Not when starting up though. + *VimResume* +VimResume When the Vim instance is resumed after being + suspended and |VimSuspend| was triggered. + Useful for triggering |:checktime| and ensure + the buffers content did not change while Vim + was suspended: > + :autocmd VimResume * checktime +< *VimSuspend* +VimSuspend When the Vim instance is suspended. Only when + CTRL-Z was typed inside Vim, not when the + SIGSTOP or SIGTSTP signal was sent to Vim. *WinEnter* WinEnter After entering another window. Not done for the first window, when Vim has just started. |