unite-sf2


Ⅰ. 插件描述

A unite.vim plugin for Symfony2

Ⅱ. 基本信息

创建日期:  2011-05-28
使用用户:  2
Github星:  8
插件作者:  Shinya Ohyanagi

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

a unite.vm plugin for Symfony2(PHP).

inspired by basyura's unite-rails and oppara's unite-cake
https://github.com/basyura/unite-rails
https://github.com/oppara/vim-unite-cake

unit /src
:Unite sf2/
unite /app
:Unite sf2/app
unite /app
:Unite sf2/app
unite /app/config
:Unite sf2/app/config
unite /app/views
:Unite sf2/app/views
unite /app/web
:Unite sf2/app/web
unite /app/src
:Unite sf2/bundles

If there are "Foo" bunde and "Bar" bundle.
unite /app/src/Foo
:Unite sf2/Foo
unite /app/src/Bar
:Unite sf2/Bar

If you want to use Foo/Controller etc, add g:unite_source_sf2_bundles to your .vimrc

let g:unite_source_sf2_bundles = {
  \ 'FooBundle': 'FooBundle',
  \ 'BarBundle': 'BarBundle',
  \ 'AcmeDemoBundle': 'Acme/DemoBundle'.
\ }

Now you can use below commands.
unite /src/AcmeDemoBundle/Command
:Unite sf2/AcmeDemoBundle/Command
unite /src/Acme/Demobundle/Controller
:Unite sf2/AcmeDemoBundle/Controller
unit /src/AcmeDemoBundle/DataFixtures
:Unite sf2/AcmeDemoBundle/DataFixtures
unit /src/AcmeDemoBundle/Entity
:Unite sf2/AcmeDemoBundle/Entity,
unit /src/AcmeDemoBundle/Features
:Unite sf2/AcmeDemoBundle/Features
unite /src/AcmeDemoBundle/Resources
:Unite sf2/AcmeDemoBundle/Resources
unite /src/AcmeDemoBundle/Serializer
:Unite sf2/AcmeDemoBundle/Serializer
unite /src/AcmeDemoBundle/Tests
:Unite sf2/AcmeDemoBundle/Tests

添加新评论