diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-21 10:45:25 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-08-21 14:16:15 +0800 |
commit | ab45d5bf6d46abd9b29389dee6689044fd63e225 (patch) | |
tree | 02f0cf7db2832114639613ead497b45a409deb40 /runtime | |
parent | 91d8f2ac534a51859c0e3c6562d07c94b27f4478 (diff) | |
download | rneovim-ab45d5bf6d46abd9b29389dee6689044fd63e225.tar.gz rneovim-ab45d5bf6d46abd9b29389dee6689044fd63e225.tar.bz2 rneovim-ab45d5bf6d46abd9b29389dee6689044fd63e225.zip |
vim-patch:8.1.2044: no easy way to process postponed work
Problem: No easy way to process postponed work. (Paul Jolly)
Solution: Add the SafeState autocommand event.
https://github.com/vim/vim/commit/8aeec40207b5adcd3a155277dc4f29189343b963
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/autocmd.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index a7c28e25d0..90211fc5db 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -862,6 +862,27 @@ RecordingLeave When a macro stops recording. Sets these |v:event| keys: regcontents regname + *SafeState* +SafeState When nothing is pending, going to wait for the + user to type a character. + This will not be triggered when: + - an operator is pending + - a register was entered with "r + - halfway executing a command + - executing a mapping + - there is typeahead + - Insert mode completion is active + - Command line completion is active + You can use `mode()` to find out what state + Vim is in. That may be: + - VIsual mode + - Normal mode + - Insert mode + - Command-line mode + Depending on what you want to do, you may also + check more with `state()`, e.g. whether the + screen was scrolled for messages. + *SessionLoadPost* SessionLoadPost After loading the session file created using the |:mksession| command. |