-
Notifications
You must be signed in to change notification settings - Fork 7
Navigation Commands
Laravel.vim provides navigation commands for editing files based on type. For
example, you can use :Econtroller FooController
to edit
app/Http/Controllers/FooController.php
and :Econfig app
to edit
config/app.php
. Each navigation command offers completion for the given
resource type.
The E
stands for edit
. You also get S
, V
, and T
variants that split
,
vsplit
, and tabedit
. These commands rely on
projectionist.vim (see Requirements):
Command | Applies to... |
---|---|
:Easset |
Anything under resources/assets/
|
:Ebootstrap |
Bootstrap files in boostrap/
|
:Ecast |
Eloquent attribute casts |
:Echannel |
Broadcast channels |
:Ecommand † |
Console commands |
:Ecomponent |
Blade components |
: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 |
:Emodel |
Models |
:Enotification |
Notifications |
:Eobserver |
Eloquent event observers |
: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 |
† Or :Econsole
and :Ecommand
, respectively, for Laravel 5.0.
Some navigation commands provide intelligent defaults when you don't provide an
argument. For example, :Eroutes web
takes you to routes/web.php
, while
:Eroutes
alone takes you to app/Providers/RouteServiceProvider.php
where
your route groups/files are registered.