'How to display arbitrary message before quitting vim?

I set some autocommands when quitting vim by autocmd BufWritePre * .... Now I want vim to show these commands before quit the window, just for remind.

Someone suggest set verbose=9, but I find this command let the vim constantly display messages even when I am editing.

And I tried to use autocmd BufWritePre * echo "[autocmd]...". This works fine when I just save but don't quit. But when I quit, the vim quit directly without displaying anything.

So is there any better way to do this? i.g. like the verbose=9, but not THAT verbose?

Many thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source