An open API service indexing awesome lists of open source software.

https://github.com/heavenshell/unite-sf2

A unite.vim plugin for Symfony2
https://github.com/heavenshell/unite-sf2

Last synced: 6 months ago
JSON representation

A unite.vim plugin for Symfony2

Awesome Lists containing this project

README

          

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