PHP Vim
From Lazer
Vim, which I have always heard but never realized, is a very useful tool. It allows one to work on server files in a useful way, with a fast light weight way. Vim actually has color coding for specific types of files (like php) and also auto complete. Below is a screen shot of my configured Vim.
Below is the .vimrc file that allows the color coding for PHP files in Vim.
:set number
:set incsearch
:set hidden
:set expandtab
:set list
:set tabstop=4
:set listchars=tab:>.
:map <F9> <ESC>:w<cr>:! prove -v -I. -Ilib -It %<CR>
:imap <F9> <ESC>:w<cr>:! prove -v -I. -Ilib -It %<CR>
syntax on
filetype on
set exrc " execute all found .vimrc files
" :setlocal spell spelllang=en
if has("autocmd")
" Drupal *.module files.
augroup module
autocmd BufRead *.module set filetype=php
augroup END
endif
