-
Notifications
You must be signed in to change notification settings - Fork 7
Navigation Commands
Noah Frederick edited this page Sep 19, 2020
·
12 revisions
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 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 |
:Emodel |
Models |
: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 |
† Or :Econsole
and :Ecommand
, respectively, for Laravel 5.0.