Ⅰ. 插件描述
Check PHP files for syntax errorsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'nrocco/vim-phplint'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'nrocco/vim-phplint'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'nrocco/vim-phplint'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/nrocco/vim-phplint
Ⅳ. 文档说明
vim-phplint
The vim-phplint plugin for vim allows you to check PHP files for syntax
errors.
It shows all errors inside the vim quickfix window allowing you to browse
through all errors. You can download the plugin from github: [vim-phplint
plugin](http://github.com/nrocco/vim-phplint "Vim plugin to check PHP files
for syntax errors")
Installation
Install the plugin using
pathogen.vim:
cd ~/.vim/bundle
git clone https://github.com/nrocco/vim-phplint.git
Or install it manually by copying the phplint.vim to your ~/.vim/plugin
directory.
Configuration
After installing phplint plugin you have a new vim command Phplint at your
- For easy syntax checking you can map the
Phplintcommand to a - like so:
noremap <C-l> :Phplint<CR></CR>
By putting this line in your ~/.vimrc you can check the current buffer by
pressing ctrl + l.
License
Copyright (c) Nico Di Rocco. Distributed under the same terms as Vim itself.
See :help license.