My .vimrc

set wrap
set paste
set mouse=a
set incsearch
set showmatch
set nocompatible
set vb t_vb=
set ruler
set textwidth=0
set vb
set showmode
set smartcase
set ignorecase
set nobackup
set nowritebackup
set noautoindent
set nosmartindent
set tabstop=2
set shiftwidth=2
set expandtab
set cmdheight=2
map <F2> :set^V invnumber^M
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
syntax on

Add new comment