php.vim


Ⅰ. 插件描述

PHP Syntax

Ⅱ. 基本信息

创建日期:  2006-06-08
使用用户:  5
Github星:  1
插件作者:  Peter Hodge

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

PHP syntax file, with several bug fixes, improvements and additions.  Should be up-to-date with all features of PHP 5.1.4.  If anything is missing, broken, not working well on your setup, or an inconvenience for you, please let me know, all feedback is welcome: <toomuchphp-vim at yahoo.com>.

New and improved highlighting features include:

  • User-defined special functions (__autoload(), __construct(), etc)
  • Built-in constants (STDIN, STR_PAD_LEFT, etc)
  • Built-in classes (stdClass, Exception, Reflection, etc)
  • Built-in interfaces (Iterator, Serializable, etc)
  • Complex expressions inside double-quoted strings using { }
  • Support for PCRE patterns
      (Patterns are only recognized if the pattern is inside the

  function call.)

  • Braces are colored to help you see when they are mismatched.
  • You can find a complete list of available options near the top of the syntax file.
  • Release 0.9 is the official 'stable' release, however I do encourage you to use the latest version as it shouldn't have any bugs either.

添加新评论