Skip to content

vim编辑器检测php语法,出错无法保存

Notifications You must be signed in to change notification settings

sfcuboy/phpcheck.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

phpcheck.vim

在vim中进行:w操作时检查php语法,若有语法错误,将禁止保存,并提示出错位置

echo "let g:PHP_SYNTAX_CHECK_BIN = '{你的php二进制文件路径}'">>~/.vimrc
mkdir -p ~/.vim/plugin
cp phpcheck.vim ~/.vim/plugin/

请去掉上面的“{}”花括号

About

vim编辑器检测php语法,出错无法保存

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published