Просматривая список событий, я выбрал следующее:
|BufFilePre| before changing the name of the current buffer
|BufFilePost| after changing the name of the current buffer
|FileChangedShell| Vim notices that a file changed since editing started
|FileChangedShellPost| After handling a file changed since editing started
|InsertEnter| starting Insert mode
|InsertChange| when typing <Insert> while in Insert or Replace mode
|InsertLeave| when leaving Insert mode
|QuickFixCmdPre| before a quickfix command is run
|QuickFixCmdPost| after a quickfix command is run
Хотя я не пробовал, я считаю, что в события Insert*
входят такие команды, как d
elete, p
aste, c
hange и т. д. Вы также должны искать события 'Writing' в | autocmd-events |.