I followed some tutorials to debug and use php code through VIM.
Here is my piece of PHP code to test
<?php echo "test" echo "test2";?>
The following code worked for me:
:autocmd FileType php noremap <CL> :!$HOME/bin/php -l %<CR>
He tells me there is a syntax error. The problem is that I want to use the quick fix console. So here is the code:
set makeprg="php -l %" nmap <F9>:make<ENTER>:copen<ENTER><CTRL>L
F9 opens a quick fix window, but does not detect a syntax error. (I save my php document to: w)
Thank you for your time!
source share