[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vim
Subject:    Re: php compiler
From:       Rory Campbell-Lange <rory () campbell-lange ! net>
Date:       2004-05-26 14:52:57
Message-ID: 20040526145257.GA3188 () campbell-lange ! net
[Download RAW message or body]

Hi Mikolaj

On 25/05/04, Mikolaj Machowski (mikmach@wp.pl) wrote:
> Dnia wtorek, 25 maja 2004 17:12, Rory Campbell-Lange napisa?:
> > After a recent vim upgrade my old php compiler plugin file no longer
> > works. My php cli is situated here: /usr/bin/php4.
> >
> > Also, if I try and set :compiler /usr/bin/php4, I get
> > E666: compiler not supported: /usr/bin/php4
> >
> >
> > ~/.vim/compiler/cphp.vim
> >
> You are defining compiler by its name
> 
> :compiler cphp

Ahah. That works
> 
> It should be possible to use
> :compiler <Tab>
> and see list of available compilers.

Thanks. That works too!

I get nothing but "shell returned 1" now.
Am I doing the right thing? I'm typing :make.

...
let current_compiler = "php4"
let s:cpo_save = &cpo
set cpo&vim
" your PHP cli (or cgi) executable may be different
set makeprg=/usr/bin/php4\ \-\l\ %\\\|\ grep\ '</b>\ on\ line\ <b>'
" Error format seems to change between versions, if this script
" doesn't seem to work, see if the format is incorrect
set errorformat=<b>%*[^<]</b>:\ \ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />
let &cpo = s:cpo_save
unlet s:cpo_save
-- 
Rory Campbell-Lange 
<rory@campbell-lange.net>
<www.campbell-lange.net>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic