I want to raise an event at the end of vim.

Question: Question:

When I quit vim with: wq, I want to say "Thank you for your hard work today" through the say command of the shell. What should I do?

Answer: Answer:

I think you can do it by writing the following code in vimrc.
The following example is an example of starting Explorer on Windows, but on Mac it is possible to write the command with a feeling like "open say" Thank you for your work today "" (unverified) in the "start explorer.exe" part. think.

augroup quitcmd
  autocmd VimLeave * :silent !start explorer.exe
augroup END
Scroll to Top