Ⅰ. 插件描述
CtrlP plugin for fast opening Symfony 2/3 files.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'voronkovich/ctrlp-symfony2-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'voronkovich/ctrlp-symfony2-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'voronkovich/ctrlp-symfony2-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/voronkovich/ctrlp-symfony2.vim
Ⅳ. 文档说明
This is a ctrlp.vim plugin that allows you to open your Symfony 2 & 3 app files easily. For now, this plugin provides:
:CtrlPSymfonyModelslist all project models (entities) and theirs repositories:CtrlPSymfonyControllerslist all project controllers:CtrlPSymfonyViewslist all project views:CtrlPSymfonyAssetslist all project assets files:CtrlPSymfonyConfigslist all project config files:CtrlPSymfonyFormslist all project form types, extensions and etc.:CtrlPSymfonyServiceslist all project services:CtrlPSymfonyServiceDefinitionshow service definition
Installation
Using pathogen
git clone git://github.com/voronkovich/ctrlp-symfony2.vim ~/.vim/bundle/ctrlp-symfony2.vimUsing vundle
Add to vimrc:
Plugin 'voronkovich/ctrlp-symfony2.vim'Running tests
Tests are run using a Ruby test runner, so you'll have to have Ruby installed, then run
$ bundle installNow you can run tests with
$ vim-flavor test t/License
Copyright (c) Voronkovich Oleg. Distributed under the same terms as Vim itself.
See :help license.