Skip to content
vim fold plugin according php ast
Vim script PHP
Branch: master
Clone or download
Pull request Compare This branch is 4 commits behind lvht:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
autoload
ftplugin
php
.gitignore
README.md
composer.json

README.md

phpfold

Fold according php ast. Thanks to PHP Parser.

install

For vim-plug:

Plug 'lvht/phpfold.vim', { 'for': 'php' }

usage

Use zm or :PhpFold to fold the php file.

Set

let g:phpfold_include_surround_blank_lines = 'downward'

if you want to include surround blank lines into each fold. You can set it also to upward.

You can’t perform that action at this time.