Search notes:

Vim events

Vim has a few events. They can be hooked to execute commands. This feature accordingly is called autocommands.
Each event is assigned a number in the auto_event enum (defined in vim.h).
Each event is also assigned one or more event names. For example, the event with the number EVENT_BUFADD has two names: BufAdd and BufCreate.

CursorHold

After waiting for a character for updatetime, a K_CURSORHOLD key is put into the inputbuffer which eventually results innv_cursorhold() (in normal.c) being called.

SessionLoadPost

When a session is loaded.

VimLeave

VimLeave

See also

The option eventignore can be set to a list of events for which no autocmds should be triggered.
:autocmd

Index