phpErrorMarker


Ⅰ. 插件描述

Mark syntax errors in php file

Ⅱ. 基本信息

创建日期:  2009-09-25
使用用户:  2
Github星:  1
插件作者:  Frederic Hardy

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/phperrormarker'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/phperrormarker'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/phperrormarker'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/phpErrorMarker

Ⅳ. 文档说明

phpErrorMarker set makeprg et errroformat automaticaly for php file.
A call to :make launch php syntax checking and set sign (:h sign for more informations) if there are any errors in file.
Some variables may be interesting :
g:phpErrorMarker#autowrite : if true, file will be automaticaly write before syntax checking, default is "0".
g:phpErrorMarker#php : path to php binary, default is "php".
g:phpErrorMarker#textError : sign used for error, default is "><".
g:phpErrorMarker#textWarning : sign used for warning, default is "--".
g:phpErrorMarker#automake : if true, make is automaticaly done after a write command like ":w", default is "0".
g:phpErrorMarker#openQuickfix : if true, quickfix window will be automaticaly opened after ":make".
g:phpErrorMarker#filter: if not empty, define the filter utility to clean PHP output.
Set these variables in your .vimrc to override default values, like that :

let g:phpErrorMarker#autowrite = 1

Please, report any bug to phpErrorMarker.vim[..at..]mageekbox.net.

添加新评论