vim-laravel


Ⅰ. 插件描述

Vim support for Laravel/Lumen 5+ projects

Ⅱ. 基本信息

创建日期:  2016-09-13
使用用户:  44
Github星:  93
插件作者:  Noah Frederick

Ⅲ. 安装方法

使用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

Ⅳ. 文档说明

# Laravel.vim

Vim support for Laravel/Lumen 5+ projects.

Release

:warning: This is a prerelease version, which may introduce breaking changes.

Features

  • The :Artisan command wraps !php artisan with intelligent completion.
  • Automatically edit new files generated by :Artisan make:* commands.
  • Navigation commands (requires projectionist.vim):
CommandApplies to...
:{E,S,V,T}assetAnything under assets/
:EbootstrapBootstrap files in boostrap/
:EchannelBroadcast channels
:EcommandConsole commands
:EconfigConfiguration files
:EcontrollerHTTP controllers
:EdocThe README.md file
:EenvYour .env and .env.example
:EeventEvents
:EexceptionExceptions
:EfactoryModel factories
:EjobJobs
:ElanguageMessages/translations
:ElibAll class files under app/
:ElistenerEvent listeners
:EmailMailables
:EmiddlewareHTTP middleware
:EmigrationDatabase migrations
:EnotificationNotifications
:EpolicyAuth policies
:EproviderService providers
:ErequestHTTP form requests
:EresourceHTTP resources
:EroutesHTTP routes files
:EruleValidation rules
:EseederDatabase seeders
:EtestAll class files under tests/
:EviewBlade templates
  • Enhanced gf command works on class names, template names, config and translation keys.
  • Complete view/route names in insert mode.
  • Use :Console to 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.

添加新评论