Event: InsertLeavePre

The InsertLeavePre event:

Fires:

Just before leaving insert mode.

When using CTRL-O i_CTRL-O.

Notes:

Be careful not to change mode or use :normal, it will likely cause trouble.