jwalton512 / vim-blade

Vim syntax highlighting for Blade templates.
225 stars 37 forks source link

Support using 'gf' to go to an included view #48

Closed adriaanzon closed 8 years ago

adriaanzon commented 8 years ago

This enables you to use the keystroke 'gf' to go to the included or extended view under the cursor, i.e. @include('filename'), @extends('filename').

The semicolon after the path makes it possible to go to the file, even if your PWD is somewhere deeper in the project, e.g. resources/views/frontend/pages (see :help file-searching).

If anyone sees something that could be improved or added, let me know. Maybe we need to support Laravel 4 in the path variable?

jwalton512 commented 8 years ago

Thanks!