Autocmd (au) #

Running Commands for a Given FileType #

  1. You must have filtype plugin on in your .vimrc
  2. autocmd FileType markdown setlocal shiftwidth=2 softtabstop=2 expandtab