Autocmd (au) #
autcmdorauis a command specified in a.vimrcthat 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 onin your.vimrc autocmd FileType markdown setlocal shiftwidth=2 softtabstop=2 expandtab