Drupal provides some reference on how to setup VIM for Drupal development, but I want these indentation settings to be applied to only drupal related files instead of all files
set expandtab set tabstop=2 set shiftwidth=2 set autoindent set smartindent
is that possible to set these settings to only .module and .inc files?
Not sure if this is relevant, but to provide syntax highlighting to the drupal files, I know the provided configuration would work
if has("autocmd") " Drupal *.module and *.install files. augroup module autocmd BufRead,BufNewFile *.module set filetype=php autocmd BufRead,BufNewFile *.install set filetype=php autocmd BufRead,BufNewFile *.test set filetype=php augroup END endif
is it possible to put the settings above into this configuration block?