Ⅰ. 插件描述
Quick help on PHP functionsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/php-funcinfo-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/php-funcinfo-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/php-funcinfo-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/php_funcinfo.vim
Ⅳ. 文档说明
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.