Because I had a talk about how to use VIM in respect to PHP source code editing, I took the time during the week, to write some extensive documentation for PDV, the PHP Documentor plugin for VIM. Additionally, I documented my VIM file type plugin, which is also available through the SVN of PDV. Take a look at the README.txt to learn more.
Update:
For those looking for my .vimrc: It is in SVN, too, but splitted up in a general .vimrc and a file type plugin, which is only sourced for PHP code. Installation instructions can be found in the README.txt, too.
Update 2:
I also added the repository to SVNServe now, so you can check it out using "svn co svn://phpugdo.de/PDV".
Fields with bold names are mandatory.
Jan
Hello Tobias,
Link to commentcan you please put your latest vimrc back online?
The old links don't work anymore...
Much appreciated!
Toby
It's also in SVN. It's just splitted into a general .vimrc and the file type plugin for PHP (see .vim/ftplugins/php.vim).
Link to commentThomas Koch
Hi Tobias,
Link to commenttwo questions:
* Does PDV also actualize a comment if I've changed variables or the function name or ...
* Is it possible to have php files opened with all functions automaticaly folded?
Thanks, Thomas Koch
Toby
Hi Thomas!
Link to commentRegarding your questions:
1. No, PDV does not parse docs again and update them, if you change anything in your code. That would be a bit too hard, without writing a real parser for the doc blocks and the code. Sorry.
2. That is possible. You can choose foldmethod=syntax and then give a regex for fold start and end. The basic idea can be grabbed from here:
http://www.vim.org/tips/tip.php?tip_id=1376
Regards,
Toby
Matthew Weier O'Phinney
Tobias -- could you put the source for the vimgrep script up somewhere?
Link to commentToby
I'll definitly do that. But it will take some more time, since it has some flaws. Stay tuned.
Link to commentEvert
Is there are new location for the repository? I was going to see if there were any updates.. but then I found out the current svn:// link is broken..
Link to commentToby
There is: http://svn.toby.phpugdo.de/PDV/
Link to commentFor checkout info see: http://svn.toby.phpugdo.de/horde/chora/co.php?r=30&f=CHECKOUT.txt
Evert
Thanks! got it
Link to commentToby
Note that PDV is now named VIP and hosted on github. For details, please refer to http://schlitt.info/opensource/blog/0719_pdv_vip_now_on_github.html
Link to comment