LadyPHP support for Vim
Vim script PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ftdetect
ftplugin
ladyphp
plugin
syntax
.gitignore
readme.md

readme.md

LadyPHP for Vim

This is plugin for LadyPHP support in Vim. It allows you to edit PHP files with using LadyPHP syntax. It also provides syntax checker for Syntastic plugin.

This is very early version, please backup your PHP files before using this plugin.

Installation

Install this plugin with your favorite Vim package manager. With pathogen it's:

git clone http://github.com/unu/vim-ladyphp ~/.vim/bundle/vim-ladyphp

If you want syntax checking, install Syntastic plugin:

git clone http://github.com/scrooloose/syntastic ~/.vim/bundle/syntastic

Make sure you have PHP installed and command php is in your $PATH.

Usage

When you open a *.php file you can toggle syntax with :LadyPhpToggle. You can create shortcut in you ~/.vimrc:

noremap <leader>l :LadyPhpToggle<cr>

You can also tell Vim to open all *.php files with LadyPHP syntax:

let g:ladyphp_autoload = 1