Ⅰ. 插件描述
Fork of the official VIm syntax file for PHPⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '2072/vim-syntax-for-php'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '2072/vim-syntax-for-php'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '2072/vim-syntax-for-php'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/2072/vim-syntax-for-php
Ⅳ. 文档说明
## About
This is a fork of the official VIm syntax file for PHP (version from 2012-12-11 is bundled with VIm 7.4)
For now I just fix things I need and use daily.
See the commit log to see the changes from Jason Woofenden's version.
Install
Vundle
- Install and configure the Vundle plug-in manager, follow the instructions here
Add the following line to your
.vimrc:Plugin '2072/vim-syntax-for-PHP.git'- Source your
.vimrcwith:so %or otherwise reload your VIm - Run the
:PluginInstallcommand
Pathogen
- Install the pathogen.vim plug-in, follow the instructions here
- Clone the repository under your
~/.vim/bundle/directory:cd ~/.vim/bundle
git clone git@github.com:2072/vim-syntax-for-PHP.git