Ⅰ. 插件描述
An extension of phpcomplete-extended autocomplete plugin for Symfony2 projects.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'm2mdas/phpcomplete-extended-symfony'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'm2mdas/phpcomplete-extended-symfony'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'm2mdas/phpcomplete-extended-symfony'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/m2mdas/phpcomplete-extended-symfony
Ⅳ. 文档说明
phpcomplete-extended-symfony
phpcomplete-extended-symfony is an extension of
phpcomplete-extended
plugin which provides autocomplete suggestions for a valid
Symfony2 projects.
Completion types includes,
- Services.
- Parameters.
- View files.
- Entity repository menu entries.
Every menu entries are context aware so goto definition and open doc
functionality of phpcomplete-extended works as expected.
If Unite.vim is installed the plugin
provides following sources,
symfony/bundles: Lists enabled bundle directories.symfony/services: Lists public services. Default action is goto the service
classsymfony/tags: Lists DIC tags. Default action is list the services defined
for the tagssymfony/entities: Lists Doctrine entities.symfony/routes_by_name: Lists routes by namesymfony/routes_by_pattern: Lists routes by pattern
Demo video (click on the image to goto youtube)
Installation
Same as phpcomplete-extended,
just add following lines in .vimrc
NeoBundle
NeoBundle 'm2mdas/phpcomplete-extended-symfony'
Vundle
Bundle 'm2mdas/phpcomplete-extended-symfony'
For pathogen clone the repository to your.vim/bundle directory.
Future plan
Future plan is to implement almost all features of [Symfony Eclipse
plugin](http://symfony.dubture.com/features).
