Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
216f835
Folding private, public, protected class variables + multi-line param…
Mar 10, 2011
433a972
do not fold classes
everzet Apr 24, 2011
7524fa6
plugin/phpfolding.vim moved to ftplugin/php/ .
nishigori Aug 27, 2011
33da6dd
Merge branch 'master' of https://github.com/everzet/phpfolding.vim
nishigori May 27, 2012
c4c9372
Don't fold classes.
gcorne Oct 11, 2012
6443ccd
move to ftplugin/php
pekepeke Jul 9, 2013
7adee05
trailing white space. add option(fold class). fixes fatal behavior
pekepeke Jul 9, 2013
0fb5f03
fixes work well as ftplugin
pekepeke Jul 9, 2013
68c6518
fixes work well as ftplugin
pekepeke Jul 9, 2013
53604bc
don't fold classes
jondavidjohn Aug 13, 2013
63d5102
Merge with https://github.com/nishigori/phpfolding.vim
rayburgemeestre Aug 25, 2013
a8f7c4a
Merge with https://github.com/gcorne/phpfolding.vim.git
rayburgemeestre Aug 25, 2013
05a3d38
Merge branch 'jondavidjohn_github.com/develop'
rayburgemeestre Aug 25, 2013
3720f03
Version 1.8
rayburgemeestre Aug 25, 2013
aeb3bbd
Small fix -> Version 1.8
rayburgemeestre Aug 25, 2013
1e91941
changed line break to lf
Oct 2, 2013
4c44668
Update README
matsubo Oct 21, 2013
864c800
Updated readme
Oct 21, 2013
5fed6e1
Added lookup for static properties
phux Feb 2, 2014
b814001
Merge branch 'master' of github.com:matsubo/phpfolding.vim into matsu…
rayburgemeestre Jun 1, 2014
fad518a
Merge branch 'matsubo-master'
rayburgemeestre Jun 1, 2014
f8cef4c
Merge pull request #2 from phux/master
rayburgemeestre Jun 1, 2014
a35e423
add support for fold use statement
taoso Aug 2, 2015
2577bc9
added support for folding consts into their docblocks
MikkelPaulson Oct 20, 2015
6398b53
格式化一下
taoso Dec 18, 2015
a11630f
deprecated
taoso May 2, 2016
a0c91cf
Merge pull request #3 from phpvim/master
rayburgemeestre May 19, 2016
d3e08a4
Revert "deprecated"
rayburgemeestre May 19, 2016
4d7d1b7
Merge pull request #4 from MikkelPaulson/fold-const-docblocks
rayburgemeestre May 19, 2016
594030d
Fixed function folding
crodas Apr 20, 2017
6023185
Merge pull request #5 from crodas/patch-1
rayburgemeestre May 22, 2018
749da89
Fixed folding camelCase function names and abstract functions in clas…
staxmoxta May 25, 2018
fb2e5b0
UpperCase at function expression.
staxmoxta May 25, 2018
d415086
Merge pull request #7 from sutem/master
rayburgemeestre Jun 18, 2018
f0483e8
Changed line ending from CR/LF to LF
Oct 2, 2013
f29b655
fix: error matching 'function' in function names such as 'register_sh…
blu3gui7ar May 15, 2014
9c26734
Pass some more test cases.
blu3gui7ar May 15, 2014
42f8534
Remove echo for fold(s) created
gms8994 Sep 24, 2015
0d99b96
fix: error matching 'function' in function names such as 'register_sh…
blu3gui7ar May 15, 2014
14ba357
No longer :redraw by default everytime folds are being created.
rayburgemeestre Mar 19, 2021
5fd79d4
Improve detection of functions and abstract functions
mikehaertl Aug 13, 2021
8361d43
Fix property detection
mikehaertl Aug 13, 2021
c7934e0
Merge pull request #8 from mikehaertl/fix-abstract-and-normal-functions
rayburgemeestre Aug 14, 2021
80fe632
Issue #9: Add demo PHP file as basis for testing
mikehaertl Aug 31, 2021
0d8c8ea
Merge pull request #10 from mikehaertl/issue-9-fix-comment-marker
rayburgemeestre Nov 18, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions README → README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
Abstract
===============

This is a mirror of http://www.vim.org/scripts/script.php?script_id=1623

This script can fold PHP functions and/or classes, properties with their phpdoc
without manually adding marker style folds ({{{ and }}}).
It will generate the following folds when executed:

```
<?php
/**
* This is Foo...
Expand All @@ -16,9 +20,11 @@ class Foo
+-- 24 lines: function baz($bar) ----------------------------------------------------
}
?>
```

Based on e.g. functions declared like this:

```
<?php
/**
* This is fooFunction...
Expand All @@ -32,11 +38,14 @@ function fooFunction($bar)
...
}
?>
```

SCREENSHOT
----------------
You can view a screenshot here: http://blog.cppse.nl/phpfolding-vim

FEATURES
----------------
- It remembers fold settings. If you add functions and execute the script again,
your opened folds will not be closed.
- It will not be confused by brackets in comment blocks or string literals.
Expand All @@ -52,19 +61,24 @@ FEATURES
- Now works properly as ftplugin

FUTURE
----------------
- Better 'configurability' as opposed to editting the PHPCustomFolds() function
and some "Script configuration" global variables.

CONTRIBUTE / GITHUB
This project is hosted on github as a mirror through
https://github.com/vim-scripts/phpfolding.vim
I do not own vim-scripts, so please fork mine instead:
https://github.com/rayburgemeestre/phpfolding.vim
----------------
- This project is hosted on github as a mirror through
- https://github.com/vim-scripts/phpfolding.vim
- I do not own vim-scripts, so please fork mine instead:
- https://github.com/rayburgemeestre/phpfolding.vim

It's then easier for me to accept pull requests and upload new version(s) here,
also I cannot put phpfolding.vim in the ftplugin/php directory through the
vim.org interface.


COMPATIBILITY
--------------

This script is tested successfully with Vim version >= 6.3 on windows and linux
(With 6.0 it works *sometimes*, I don't recommend using it in that version)
Loading