Mercurial > vim
comparison runtime/doc/autocmd.txt @ 13442:94e638936d3e v8.0.1595
patch 8.0.1595: no autocommand triggered before exiting
commit https://github.com/vim/vim/commit/12a96de430779b88795fac87a2be666d9f661d1e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 11 14:44:18 2018 +0100
patch 8.0.1595: no autocommand triggered before exiting
Problem: No autocommand triggered before exiting.
Solution: Add the ExitPre autocommand event.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 11 Mar 2018 14:45:05 +0100 |
parents | 02b3f719eacb |
children | 9f06f7aca74c |
comparison
equal
deleted
inserted
replaced
13441:16773ccde7fe | 13442:94e638936d3e |
---|---|
283 |VimEnter| after doing all the startup stuff | 283 |VimEnter| after doing all the startup stuff |
284 |GUIEnter| after starting the GUI successfully | 284 |GUIEnter| after starting the GUI successfully |
285 |GUIFailed| after starting the GUI failed | 285 |GUIFailed| after starting the GUI failed |
286 |TermResponse| after the terminal response to |t_RV| is received | 286 |TermResponse| after the terminal response to |t_RV| is received |
287 | 287 |
288 |QuitPre| when using `:quit`, before deciding whether to quit | 288 |QuitPre| when using `:quit`, before deciding whether to exit |
289 |ExitPre| when using a command that may make Vim exit | |
289 |VimLeavePre| before exiting Vim, before writing the viminfo file | 290 |VimLeavePre| before exiting Vim, before writing the viminfo file |
290 |VimLeave| before exiting Vim, after writing the viminfo file | 291 |VimLeave| before exiting Vim, after writing the viminfo file |
291 | 292 |
292 Various | 293 Various |
293 |FileChangedShell| Vim notices that a file changed since editing started | 294 |FileChangedShell| Vim notices that a file changed since editing started |
649 "window" to trigger on `:lcd | 650 "window" to trigger on `:lcd |
650 "global" to trigger on `:cd` | 651 "global" to trigger on `:cd` |
651 "auto" to trigger on 'autochdir'. | 652 "auto" to trigger on 'autochdir'. |
652 "drop" to trigger on editing a file | 653 "drop" to trigger on editing a file |
653 <afile> is set to the new directory name. | 654 <afile> is set to the new directory name. |
655 *ExitPre* | |
656 ExitPre When using `:quit`, `:wq` in a way it makes | |
657 Vim exit, or using `:qall`, just after | |
658 |QuitPre|. Can be used to close any | |
659 non-essential window. | |
654 *FileChangedShell* | 660 *FileChangedShell* |
655 FileChangedShell When Vim notices that the modification time of | 661 FileChangedShell When Vim notices that the modification time of |
656 a file has changed since editing started. | 662 a file has changed since editing started. |
657 Also when the file attributes of the file | 663 Also when the file attributes of the file |
658 change or when the size of the file changes. | 664 change or when the size of the file changes. |
864 QuitPre When using `:quit`, `:wq` or `:qall`, before | 870 QuitPre When using `:quit`, `:wq` or `:qall`, before |
865 deciding whether it closes the current window | 871 deciding whether it closes the current window |
866 or quits Vim. Can be used to close any | 872 or quits Vim. Can be used to close any |
867 non-essential window if the current window is | 873 non-essential window if the current window is |
868 the last ordinary window. | 874 the last ordinary window. |
875 Also see |ExitPre|. | |
869 *RemoteReply* | 876 *RemoteReply* |
870 RemoteReply When a reply from a Vim that functions as | 877 RemoteReply When a reply from a Vim that functions as |
871 server was received |server2client()|. The | 878 server was received |server2client()|. The |
872 pattern is matched against the {serverid}. | 879 pattern is matched against the {serverid}. |
873 <amatch> is equal to the {serverid} from which | 880 <amatch> is equal to the {serverid} from which |