Vim autocommands are executed automatically by vim when certain events occur.
In the Vim text editor, the autocommand
command is a way to specify that certain commands should be executed automatically in response to certain events, such as entering a window, or editing a file.
In vim, do :h autocmd.txt
for detailed help on using autocomands.