标签:
test10.php
<?php $a = 1 $b = 2 ?>
当执行w写入时候,报错提示
"PHP语法检查插件 phpcheck.vim "2014.7.9 PHP保存时自动检查 "2014.8.8 加-n, *.php, 去掉判断, 快捷键 "@author quanhengzhuang autocmd BufWritePost *.php call PHPSyntaxCheck() if !exists('g:PHP_SYNTAX_CHECK_BIN') let g:PHP_SYNTAX_CHECK_BIN = 'php' endif function! PHPSyntaxCheck() let result = system(g:PHP_SYNTAX_CHECK_BIN.' -l -n '.expand('%')) if (stridx(result, 'No syntax errors detected') == -1) echohl WarningMsg | echo result | echohl None endif endfunction
vim插件phpcheck安装与使用 -- 高效的检查php语法错误
标签:
原文地址:http://blog.csdn.net/clevercode/article/details/51886603