PHP-correct-Indenting


Ⅰ. 插件描述

The official VIm indent script for PHP

Ⅱ. 基本信息

创建日期:  2004-11-01
使用用户:  276
Github星:  117
插件作者:  John Wellesz

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

## About

This is the official PHP indentation plug-in for VIm (version 1.39 is bundled with VIm 7.4).

Please, visit the homepage of the PHP indentation script to see all the details about its features and capabilities.

Options

Just type :help php-indent inside VIm.

Optional updated Syntax script

Feel free to use my updated version of the official VIm syntax
script for PHP which fixes a few issues and add support for some of the newest PHP
features (see the change log for the details).

Install

Vundle

  1. Install and configure the Vundle plug-in manager, follow the instructions here
  2. Add the following line to your .vimrc:

        Plugin '2072/PHP-Indenting-for-VIm'
  3. Source your .vimrc with :so % or otherwise reload your VIm
  4. Run the :BundleInstall command

Pathogen

  1. Install the pathogen.vim plug-in, follow the instructions here
  2. Clone the repository under your ~/.vim/bundle/ directory:

    cd ~/.vim/bundle
    git clone git@github.com:2072/PHP-Indenting-for-VIm.git

添加新评论