Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

Your Answer


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.