Mercurial > vim
diff runtime/doc/autocmd.txt @ 23048:ad674a98058a v8.2.2070
patch 8.2.2070: can't get the exit value in VimLeave(Pre) autocommands
Commit: https://github.com/vim/vim/commit/f0068c5154a99b86b2c4515a4b93c003b2445cf4
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Nov 30 17:42:10 2020 +0100
patch 8.2.2070: can't get the exit value in VimLeave(Pre) autocommands
Problem: Can't get the exit value in VimLeave or VimLeavePre autocommands.
Solution: Add v:exiting like in Neovim. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/7395)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 30 Nov 2020 17:45:05 +0100 |
parents | e7c125224b1a |
children | 99ef85ff1af4 |
line wrap: on
line diff
--- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -1214,6 +1214,7 @@ VimLeave Before exiting Vim, just afte To detect an abnormal exit use |v:dying|. When v:dying is 2 or more this event is not triggered. + To get the exit code use |v:exiting|. *VimLeavePre* VimLeavePre Before exiting Vim, just before writing the .viminfo file. This is executed only once, @@ -1224,6 +1225,7 @@ VimLeavePre Before exiting Vim, just b < To detect an abnormal exit use |v:dying|. When v:dying is 2 or more this event is not triggered. + To get the exit code use |v:exiting|. *VimResized* VimResized After the Vim window was resized, thus 'lines' and/or 'columns' changed. Not when starting