Skip to content

Instantly share code, notes, and snippets.

@itsip
Created September 11, 2018 17:27
Show Gist options
  • Save itsip/fea15d3d3145ac368a47dc077721d59a to your computer and use it in GitHub Desktop.
Save itsip/fea15d3d3145ac368a47dc077721d59a to your computer and use it in GitHub Desktop.
Step through to vue files
" 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