15.2. Autocommand - shinokada/vimnotes GitHub Wiki

In .vimrc, autocmd event pattern command

syntax on
filetype indent on
set smartindent
autocmd BufRead, BufWritePre *.html normal gg=G 
⚠️ **GitHub.com Fallback** ⚠️