vim-xhp


Ⅰ. 插件描述

XHP syntax highlighting and indenting for vim.

Ⅱ. 基本信息

创建日期:  2012-06-09
使用用户:  10
Github星:  7
插件作者:  Max Wang

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

vim-xhp

Syntax highlighting and indenting for XHP. XHP is a PHP extension developed by
Facebook which augments PHP with inline XML documents and custom XML elements.

Installation

Pathogen

The recommended installation method is via Pathogen. Then simply execute

cd ~/.vim/bundle
git clone https://github.com/mxw/vim-xhp.git

Manual Installation

If you have no ~/.vim/after directory, you can download a tarball or zip from
GitHub and copy the contents to ~/.vim.

If you have existing ~/.vim/after files, copy the syntax and indent files
directly into their respective destinations. If you have existing after syntax
or indent files for PHP, you'll probably want to do something like

mkdir -p ~/.vim/after/syntax/php
cp path/to/vim-xhp/after/syntax/php.vim ~/.vim/after/syntax/php/xhp.vim
mkdir -p ~/.vim/after/indent/php
cp path/to/vim-xhp/after/indent/php.vim ~/.vim/after/indent/php/xhp.vim

添加新评论