Search notes:

Vim ex command: autocmd

What is executed when creating a new *.sql file:
:autocmd BufNewFile *.sql
In order to determine where an autocmd was defined, the :verbose command can be used:
:verbose autocmd BufNewFile *.sql

See also

augroup
Vim events

Index