Ⅰ. 插件描述
Vim support for Laravel/Lumen 5+ projectsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'noahfrederick/vim-laravel-face-rejection'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'noahfrederick/vim-laravel-face-rejection'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'noahfrederick/vim-laravel-face-rejection'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/noahfrederick/vim-laravel
Ⅳ. 文档说明
# 
Vim support for Laravel/Lumen 5+ projects.
:warning: This is a prerelease version, which may introduce breaking changes.
Features
- The
:Artisancommand wraps!php artisanwith intelligent completion. - Automatically edit new files generated by
:Artisan make:*commands. - Navigation commands (requires projectionist.vim):
| Command | Applies to... |
|---|---|
:{E,S,V,T}asset | Anything under assets/ |
:Ebootstrap | Bootstrap files in boostrap/ |
:Echannel | Broadcast channels |
:Ecommand | Console commands |
:Econfig | Configuration files |
:Econtroller | HTTP controllers |
:Edoc | The README.md file |
:Eenv | Your .env and .env.example |
:Eevent | Events |
:Eexception | Exceptions |
:Efactory | Model factories |
:Ejob | Jobs |
:Elanguage | Messages/translations |
:Elib | All class files under app/ |
:Elistener | Event listeners |
:Email | Mailables |
:Emiddleware | HTTP middleware |
:Emigration | Database migrations |
:Enotification | Notifications |
:Epolicy | Auth policies |
:Eprovider | Service providers |
:Erequest | HTTP form requests |
:Eresource | HTTP resources |
:Eroutes | HTTP routes files |
:Erule | Validation rules |
:Eseeder | Database seeders |
:Etest | All class files under tests/ |
:Eview | Blade templates |
- Enhanced
gfcommand works on class names, template names, config and translation keys. - Complete view/route names in insert mode.
- Use
:Consoleto fire up a REPL (artisan tinker).
Installation
Laravel.vim has optional dependencies on composer.vim,
dispatch.vim (the :Console command),
projectionist.vim (navigation commands), and
nvim-completion-manager (insert-mode completion):
Plug 'tpope/vim-dispatch' "| Optional
Plug 'tpope/vim-projectionist' "|
Plug 'roxma/nvim-completion-manager' "|
Plug 'noahfrederick/vim-composer' "|
Plug 'noahfrederick/vim-laravel'
Credits and License
Thanks to Tim Pope for rails.vim on which Laravel.vim is modeled.
Copyright © Noah Frederick. Distributed under the same terms as Vim itself.
See :help license.