Configuring your favourite VIM for Drupal Coding Standards

1) Create a file (if not already existing) .vimrc in your home directory.
2) Put following vimrc file in ~/.vimrc:
set expandtab
set tabstop=2
set shiftwidth=2
set autoindent
set smartindent
set filetype=php
if has("autocmd")
" Drupal *.module and *.install files.
augroup module
autocmd BufRead,BufNewFile *.module set filetype=php
autocmd BufRead,BufNewFile *.install set filetype=php
augroup END
endif
syntax on
3) Make change in your .bashrc ( ~/.bashrc) file to load vim for vi (if you haven't already):
alias vi='vim '
Done. You Vim is now drupal compliant.
R u ever install livezilla module in drupal ?
Hi sudeep !
I installed livezilla module on my drupal site , and configured path setting in block ?
but it is not working ?
any thing left which i did't configure ?
So please help me if any idea u know .
- Log in to post comments