sponsor Vim development Vim logo Vim Book Ad

PHPSyntaxCheck : PHP语法检查

 script karma  Rating 9/3, Downloaded by 187    Comments, bugs, improvements  Vim wiki

created by
quan hengzhuang
 
script type
ftplugin
 
description
PHP语法检查插件

在PHP文件保存时会自动进行语法检查,有错误会提示,没有错误不提示。

*语法检查使用系统的php -l -n命令;
*对非PHP文件不起作用;

详见:
http://blog.quanhz.com/archives/393
 
install details
配置:
可配置phpbin的路径,不配置默认使用'php'
let g:PHP_SYNTAX_CHECK_BIN = '/apps/php/bin/php'

安装说明:
将phpcheck.vim放入vim的plugin目录。
(注:plugin目录一般在~/.vim或vim的安装目录下)
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
phpcheck.vim 1.1 2014-08-10 7.0 quan hengzhuang 1.可配置phpbin路径;2.php执行时添加参数-n;3.只对*.php有效,用autocmd控制;
phpcheck.vim 1.0 2014-07-11 7.0 quan hengzhuang Initial upload
ip used for rating: 54.197.211.197

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo