Autocmd (au) #
autcmd
orau
is a command specified in a.vimrc
that runs in response to a given event- e.g. file type change, buffer, save, file read or writting
Running Commands for a Given FileType #
- You must have
filtype plugin on
in your.vimrc
autocmd FileType markdown setlocal shiftwidth=2 softtabstop=2 expandtab