Ⅰ. 插件描述
Zend Framework Tool adapter for VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'dsaenztagarro/zftool-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'dsaenztagarro/zftool-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'dsaenztagarro/zftool-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/dsaenztagarro/vimux-zftool
Ⅳ. 文档说明
# vimux-zftool
Introduction
ZFTool is an utility module for maintaining modular Zend Framework 2
- It runs from the command line and can be installed as ZF2 module
- as PHAR
This plugin gives you access to ZFTool features without leaving your favourite
editor.
Dependencies
This plugin depends on vimux and zftool. It also makes the assumption
that you're using tmux.
Usage
There are a number of pre-defined commands. You can easily map
them as needed like this:
map <Leader>nm :ZFToolCreateModule<CR>
map <Leader>nc :ZFToolCreateController<CR>
map <Leader>na :ZFToolCreateAction<CR>
Every time you run a command values are cached in order to make next command
quickier to run
Commands
- ZFToolCreateProject
- ZFToolCreateModule
- ZFToolCreateController
- ZFToolCreateAction
- ZFToolRepeat
Installation
Use your plugin manager of choice.
git clone https://github.com/dsaenztagarro/vimux-zftool ~/.vim/bundle/vimux-zftool
- Add
Bundle 'https://github.com/dsaenztagarro/vimux-zftool'to .vimrc - Run
:BundleInstall
- Add
- Add
NeoBundle 'https://github.com/dsaenztagarro/vimux-zftool'to .vimrc - Run
:NeoBundleInstall
- Add
- Add
Plug 'https://github.com/dsaenztagarro/vimux-zftool'to .vimrc - Run
:PlugInstall
- Add
License
Copyright (c) David Saenz Tagarro. Distributed under the same terms as Vim itself.
See :help license.