This file contains 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 |
This file contains 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
" Go to github plugin page | |
nnoremap <leader>pl :call GoToPlugin()<CR><CR> | |
function! GoToPlugin() | |
normal "lyi' | |
let plugin = @l | |
execute "!open https://www.github.com/" . plugin | |
endfunction |
This file contains 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
" Go to vue component | |
nnoremap <leader>vu :call GoToVue()<CR> | |
function! GoToVue() | |
execute "set isk+=-" | |
normal "lyiw | |
execute "set isk-=-" | |
let filename = @l | |
let file = system("find resources/assets/js -name " . filename . ".vue") | |
execute "edit " . file |