WebTechKitchen; Your Web Technology Kitchen, contact us to create, or maintain your websites and other digital properties.

Here is my .vimrc file for mvim

Submitted by barnettech on Mon, 10/21/2013 - 11:45

Here is my .vimrc file for mvim, in particular I don't want to forget how to configure Syntastic for Drupal syntax checking in drupal.  If you type in "phpcs -i" you can verify that the drupal sniffer is setup and available.  The output on my screen from phpcs -i is "The installed coding standards are Drupal, MySource, PEAR, PHPCS, PSR1, PSR2, Squiz and Zend"

The rest of the instructions here will be sufficient as long as you know to add the line about syntastic_phpcs_conf in your vimrc file:  https://drupal.org/node/1419988

 

" Following lines added by drush vimrc-install on Fri, 30 Nov 2012 20:32:59 +0000.
set nocompatible
" End of vimrc-install additions.
let g:syntastic_phpcs_conf='--standard=Drupal --extensions=php,module,inc,install,test,profile,theme'
:call pathogen#infect('~/.vim/bundle/{}')
syntax on
filetype plugin indent on
set expandtab
set tabstop=2
set shiftwidth=2
set autoindent
set smartindent
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
    autocmd BufRead,BufNewFile *.inc set filetype=php
    autocmd BufRead,BufNewFile *.profile set filetype=php
    autocmd BufRead,BufNewFile *.view set filetype=php
  augroup END
endif
" :colorscheme koehler
:colorscheme darkblue
set guifont=Menlo:h14