Last active
September 19, 2017 21:59
-
-
Save itsip/2e1598ea8dcec6c23fba1b8804007169 to your computer and use it in GitHub Desktop.
function for stepping through blade partials
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nnoremap <leader>p :call GoToPartial()<CR> | |
function! GoToPartial() | |
normal "lyi' | |
let partial = @l | |
let file = substitute(partial, "\\.", "/", "g") | |
execute "edit resources/views/" . file . ".blade.php" | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment