Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using PHP linter to check syntax errors in PHP , right from vim with that command : :!PHP -l "%" when I do that, ( I'm on Windows ) , Windows open another CMD and the result of the parsing is displayed in that window.

Is it possible to get the output of the linter right into vim, either in the bottom of vim or maybe in a readonly buffer at the bottom of my screen ?

share|improve this question
add comment

1 Answer

Try doing ":compiler php", then ":make %". If errors are reported, Vim will jump to the first one. You can also view them by typing ":cwindow" or ":copen". This involves the QuickFix system, see ":help quickfix.txt" to learn more about it.

share|improve this answer
    
I tried this, but although php reports errors, vim says there are no errors and :cwindow doesn't display anything. –  Jon Jun 7 '13 at 0:38
    
What version of Vim? What operating system? What version of PHP? What is the exact command-line command you are running? –  Heptite Jun 7 '13 at 1:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.