Top "Autocmd" questions

Vim commands you can specify to be executed automatically when reading or writing a file, when entering or leaving a buffer or window, and when exiting Vim

How to automatically execute a shell command after saving a file in Vim?

This is because I'd like to automatically run tests after each file save. I have looked at autocmd and BufWritePost …

vim autocmd
Vim run autocmd on all filetypes EXCEPT

I have a Vim autocmd that removes trailing whitespace in files before write. I want this almost 100% of the time, …

vim strip autocmd
autocmd check filename in vim?

I want to write some autocmd's that check if the filename is this or that.. I've been trying: autocmd VimEnter * …

vim if-statement autocmd