vim-pman


Ⅰ. 插件描述

Shows PHP API documentation in balloons in Vim

Ⅱ. 基本信息

创建日期:  2012-01-22
使用用户:  3
Github星:  3
插件作者:  Bèr Kessels

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'berkes/vim-pman'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'berkes/vim-pman'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'berkes/vim-pman'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/berkes/vim-pman

Ⅳ. 文档说明

Pman as vim bubbles

Installation:

First, install pman.

  • Install pear. (Ubuntu/Debian-ish: apt-get install php-pear; mac:

    `brew install php-pear`)
  • pear install doc.php.net/pman

Then install this plugin with pathogen.

  • cd where/is/your/.vim/bundle/
  • git clone git://github.com/berkes/vim-pman.git

Contents:

  • Ftplugin, fires on php files.

TODO

This is just a quick hack, more a proof of concept and a place to start
then anything else. So there are many todo's:

  • Regular expression on code, to find if the hovered word is a candidate
    for a lookup before doing that lookup.
  • Output parsing to make the balloons smaller and denser.
  • Is there no better solution for pman? One that can include doxygen for
    your custom project, for example?
  • Trigger pman with some keycombo, or command, for example :pman and
    output the result in a splitscreen. Bubbles are cool, but only

available to gvim/macvim and only the newer ones. We could use a
fallback.

添加新评论