Ⅰ. 插件描述
Vim syntax file for PHPⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'mageekguy/php-vim-everything-has-changed'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'mageekguy/php-vim-everything-has-changed'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'mageekguy/php-vim-everything-has-changed'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/mageekguy/php.vim
Ⅳ. 文档说明
php.vim
Vim syntax file for PHP
Yet another PHP syntax file for VIM.
It's a light syntax file because there are:
- No support for PHP native functions
- No support for PHP native classes
- No support for PHP native interfaces
- No support for PHP native constants
- No support for PHP short tags, ie
<?and?> - No support for other syntax like HTML, JavaScript or SQL.
In order to use it, just put it in your .vim/syntax directory.
It can be used only with VIM ≥ 7.
Features
- Support PHP 5.4 syntax
- Support annotations in comment block
- Fold functions, classes, interfaces, methods
- Fold comment block
- Fold try and catch block.
- Fold namespace importation if the
usestatement is used as a block, ie:
use
foo\bar,
atoum
;