Ⅰ. 插件描述
An extension of phpcomplete-extended autocomplete plugin for laravel projectsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'm2mdas/phpcomplete-extended-laravel'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'm2mdas/phpcomplete-extended-laravel'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'm2mdas/phpcomplete-extended-laravel'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/m2mdas/phpcomplete-extended-laravel
Ⅳ. 文档说明
phpcomplete-extended-laravel
phpcomplete-extended-laravel is an extension of
phpcomplete-extended plugin
which provides autocomplete suggestions for
laravel projects. Following completion
types are supported right now,
- Facades
- Models
Also goto defenition and open doc functionality works as expected.
If Unite.vim installed, following sources
are available,
laravel/facades: Lists facadeslaravel/ioc: Lists ioc serviceslaravel/models: Lists modelslaravel/routes: Lists routes
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-laravel'
Vundle
Bundle 'm2mdas/phpcomplete-extended-laravel'
For pathogen clone the repository to your.vim/bundle directory.
Future plan
- Package listing
- View file completion
- Ioc service completion
and many more.
