Due to the recent write PHP more, occasionally hand-less write a semicolon and other grammatical errors, the general way is to go back to the command line run Php-l, or upgrade directly in Vim run:!php-l%, or then bind this as a shortcut key, such as: Map :!php-l% , you can perform a grammar check immediately whenever you press F5. But still feel slightly uncomfortable, because many Ides are checked in real time, syntax errors will prompt the line of code next. While real-time checking may not be necessary, automatic checking is much easier than manual checking, such as checking automatically when a PHP file is saved.
So wrote this Phpcheck.vim plug-in, the basic function is in the PHP file save grammar Check, there are errors will prompt out, no error will not have any hint. Most of the time, you will not see the effect of this plugin, but occasionally hand errors in grammar, you will see the prompt.
The error message is as follows:
The error message contains error messages and error line numbers.
Most of the cases are not configured. If your Phpbin directory is not in the system environment variable, you can specify the path of Phpbin, as follows:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.