php_abb


Ⅰ. 插件描述

abbreviations for php functions

Ⅱ. 基本信息

创建日期:  2002-10-21
使用用户:  1
Github星:  1
插件作者:  culley harrelson

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

php_abb is a ftplugin for php, mostly providing insert mode abbreviations
for php builtin functions and control structures.  These abbreviations
expand to function stubs and should help you remember the syntax in
addition to speeding typing.  A map-like function that does a number of
possibly obtuse things is also included.

The insert mode abbreviations come in two falvors: those using the raw
php function name (these can be disabled) and those prefixed with g:phpLeader.  
See the help file for details.

The phpActOnVariable function performs a number of activities on the php
variable under your cursor at the time the function is executed.  You should
create a map to this function.  As an example of how you would use this, say you
have mapped it to <leader>m and you have your cursor on any letter in the word
test in the following code:

     $test = "FooBaR";

If you then type <leader>m and strtl<cr> a new line will be opened underneath
and the following code will be inserted:

     $test = strtolower($test);

You can see a list of all the mappings for this function by executing the
function and entering '?' when prompted.

添加新评论