50

GitHub - 2072/PHP-Indenting-for-VIm: The official VIm indent script for PHP

 5 years ago
source link: https://github.com/2072/PHP-Indenting-for-VIm
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

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 [email protected]:2072/PHP-Indenting-for-VIm.git
    

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK