Created
September 11, 2018 17:27
-
-
Save itsip/fea15d3d3145ac368a47dc077721d59a to your computer and use it in GitHub Desktop.
Step through to vue files
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
" 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 | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment