I use vim and would like it to prevent me from saving php files that has parse errors. If I would like to use for instance "php -l
I know I can hook into BufWritePre with something like
autocmd FileType php autocmd BufWritePre * !php -l %
but I want it to abort the "write" if the php command fails.