"syntax on gives us syntax highlighting syntax on "set whatever colorschema you want, this time we use oceandeep which you can find at http://www.vim.org/scripts/script.php?script_id=368 colors oceandeep "syntax highlighting inside php sql queries let php_sql_query = 1 "set the spaces instead of regular tab set expandtab "sets tab and shiftwidth to 2 spaces according to drupals coding standard set tabstop=2 shiftwidth=2 softtabstop=2 "give filenames with .inc, .module and .php the php syntax highlighting autocmd BufRead *.inc,*.module set ft=php "use the same indent from current line when starting a new line set autoindent "use smart autoindenting. Used when line ends with { set smartindent "gives us linenumbering set number "sets vim in pastemode and you avoid unwanted sideeffects set paste "the incremental search gives us mathing words as you type. set incsearch "the highlight search will highlight all matchings, and you can browse the document to see all matches set hlsearch