schlitt.info - php, photography and private stuff ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Author: Tobias Schlitt :Date: Wed, 19 Nov 2008 23:29:46 +0100 :Revision: 1 :Copyright: CC by-nc-sa =========================== phpDocumentor for VIM 1.0.1 =========================== :Description: I recently uploaded a new version of PDV (phpDocumentor for VIM), which allows you to comfortable generate documentation for your PHP classses, functions, methods and attributes. The new version fixes some issues with the usage of tabs in your code (since I only use spaces, I did not notice these), as well as some smaller bugs. Enjoy! :) I recently uploaded a `new version`__ of `PDV`__ (phpDocumentor for VIM), which allows you to comfortable generate documentation for your PHP classses, functions, methods and attributes. The new version fixes some issues with the usage of tabs in your code (since I only use spaces, I did not notice these), as well as some smaller bugs. Enjoy! :) .. __: http://www.vim.org/scripts/download_script.php?src_id=4666 .. __: http://www.vim.org/scripts/script.php?script_id=1355 .. Local Variables: mode: rst fill-column: 79 End: vim: et syn=rst tw=79 Trackbacks ========== Comments ======== - Christian Stadler at Sun, 27 Nov 2005 02:56:53 +0100 Nice plugin I've just started playing around with it. But I guess, I've noticed a little 'bug' in your example for installing the plugin. I think " imap ^[:set paste:exe PhpDoc():set nopaste should better be " imap :set paste:call PhpDoc():set nopaste Regards, Christian Stadler - Toby at Sun, 27 Nov 2005 10:16:15 +0100 Hi! Thanks for the feedback! The escape char is to quit insert mode and switch into command mode. I asume it would not work without (but I did not test it). Did you? Cheers! Toby - Christian Stadler at Sun, 27 Nov 2005 12:34:57 +0100 Sorry, the parser stripped everything, that looked like an HTML-tag. I've meant replacing ^[ with < ESC > and :exe PhpDoc() with :call PhpDoc() When copy&paste ^[ only works when yanking/cutting with vim directly, otherwise it fails. < ESC > seems to work always. Regards, Christian Stadler - Toby at Sun, 27 Nov 2005 14:45:29 +0100 Ah, now I understand your point. That's a good addition. I changed that on the website. Thanks for the hint! :) - Ray Burgemeestre at Sat, 29 Jul 2006 22:05:26 +0200 I was trying to post an example of a script I made to fold PHP functions and/or classes with PhpDoc comments support. But It keeps: saying Invalid Message. - Ray Burgemeestre at Sat, 29 Jul 2006 22:16:59 +0200 I made a VIM script that folds functions and or classes in PHP that supports the PhpDoc API comments. /** * fooFunction * * @param mixed $bar * @access public * @return void */ function fooFunction($bar) { if (true) { while (true) { return; } } } Is folded in to this: +-- 16 lines: function fooFunction($bar)------------------------- The problem I have with let php_folding=1, is that the PhpDoc comments are not included in the folds. Thats why I made this script.. You can find it here: http://www.vim.org/scripts/script.php?script_id=1623 It's called phpfolding.vim - Toby at Tue, 16 Feb 2010 08:53:59 +0100 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