Event: VimLeavePre

The VimLeavePre event:

Fires:

Before exiting Neovim, just before writing the .shada file.

Notes:

This event fires only once, if there is a match with the name of what happens to be the current buffer when exiting.

Mostly useful with a "*" pattern.