On 10/18/06, Gary Johnson <[EMAIL PROTECTED]> wrote:
The way to fix this problem is to create two new directories:$VIM\vimfiles\after $VIM\vimfiles\after\ftplugin on Windows or ~/.vim/after ~/.vim/after/ftplugin on Unix. Then create a new file in the after/ftplugin directory named php.vim and put in it those commands that fix the problem, e.g., setlocal nosta setlocal noai setlocal nosi
An alternative to creating ~/.vimrc/after/ftplugin/php.vim is to put it in your ~/.vimrc, using the autocmd FileType feature, like this: autocmd! FileType php setlocal nosta | setlocal noai | setlocal nosi For example, I have this: autocmd! FileType perl FileTypePerl command! FileTypePerl setlocal makeprg=perl\ -c\ % \ | let perl_extended_vars=1 \ | setlocal keywordprg=perldoc\ -f \ | setlocal cindent \ | setlocal errorformat= \%-G%.%#had\ compilation\ errors., \%-G%.%#syntax\ OK, \%m\ at\ %f\ line\ %l., \%+A%.%#\ at\ %f\ line\ %l\\,%.%#, \%+C%.%# -- Rodolfo Borges
