sponsor Vim development Vim logo Vim Book Ad

php_funcinfo.vim : Quick help on PHP functions

 script karma  Rating 4/6, Downloaded by 1136    Comments, bugs, improvements  Vim wiki

created by
kAtremer
 
script type
ftplugin
 
description
A filetype plugin file for PHP. Displays a list of built-in PHP functions, their prototypes and short descriptions.

Intended to be quick-reference-under-hand while editing a PHP script. You hit a hotkey, it opens a list of all PHP functions and displays a short synopsis for the word under cursor, if that is found.

The plugin is =UNFINISHED=, so there are some bugs:
- Some bugs in function list updating. Flicker. And somewhere in moving back-and-forth, wrong entries begin to show up.
- Syntax highlighting of the function prototype is quite messy.
- No mappings to put the selected function call back into the text.
- Speedup might help.

Also planned:
- Parse the XML source of the manual thoroughly, including predefined constants and variables, dividing functions into sections, etc.
- Kind of integration with external help, like Vim format by Jörn Horstmann (http://planetxml.de/vim-php-manual.php), or HTML format (will probably have to write a Vim browser) or CHM.

Anybody who cares, feel free to take over the development of this plugin.

ZIP file is 80 Kb.
 
install details
Put php_funcinfo.vim and php_funcinfo.txt (this is the list of functions, not docs) in
~/.vim/after/ftplugin (Unix) or
$VIM\vimfiles\after\ftplugin (Windows)

The default mapping for the hotkey is <F2>, which interferes with the EasyHTML plugin, and EasyHTML is loaded by the default php ftplugin. That's why the script must go to the /after directory. I suppose that nobody needs EasyHTML while editing PHP code. Or you can change the mapping.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
php_funcinfo.zip 1.0 2005-06-15 6.0 kAtremer Initial upload
ip used for rating: 54.196.62.132

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo