configuring vim for drupal php files
generally speaking, vim is a pretty smart text editor. if you put the following in your .vimrc file
syntax onthen it will color highlight your file appropriately. it chooses the appropriate color highlighting by looking at the file suffix (e.g. .java, .c).
unfortunately, the drupal .module and .inc files fool vim, because these are not standard php extensions. To tell vim to recognize .module and .inc files as php files, add the following to your .vimrc
augroup module
autocmd BufRead *.module set filetype=php
augroup END
augroup inc
autocmd BufRead *.inc set filetype=php
augroup END- cailin's blog
- 2023 reads


delicious
digg
reddit
google
yahoo
thanks
thanks
post new comment