3

Runtime syntax check for php

view full story
linux-howto

http://vim.wikia.com – ← Older revision Revision as of 01:04, September 7, 2010 Line 112: Line 112: set errorformat=%m\ in\ %f\ on\ line\ %l set errorformat=%m\ in\ %f\ on\ line\ %l   + </pre>   +   + ----   + I used to do <code>:!php -l %</code>. The previous tip has by far worked the best for me since that. I made a small modification to return the cursor to the previous position if there were no errors; as it was above sent the cursor to the first line when successfully saved. (HowTos)