" Load PHP specific settings when editing PHP "autocmd BufRead *.php source ~/.vim/vimrc.php "au BufNewFile,BufRead *.php set filetype=php "au FileType php :set tw=0 " map 'K' to look up PHP shit instead of running 'man' " pbrowser is a script that calls a text-based browser with PHP's manual url " It looks like this: "#!/bin/bash "w3m "http://www.php.net/manual-lookup.php?lang=en&function=${*}" set keywordprg=$HOME/bin/pbrowser set tw=0 "If you like SQL syntax hightlighting inside Strings: > let php_sql_query = 1 "Enable HTML syntax highlighting inside strings: > let php_htmlInStrings = 1 "For highlighting parent error ] or ): > let php_parent_error_close = 1 "Enable folding for classes and functions: > let php_folding = 1 "I think this is useless with the sync stuff below, but it's here anyway let php_minlines=2000 "Selecting syncing method: > let php_sync_method = 0 "x = -1 to sync by search (default), "x > 0 to sync at least x lines backwards, "x = 0 to sync from start.