Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function! GotoJump()
- jumps
- let j = input("Please select your jump: ")
- if j != ''
- let pattern = '\v\c^\+'
- if j =~ pattern
- let j = substitute(j, pattern, '', 'g')
- execute "normal " . j . "\<c-i>"
- else
- execute "normal " . j . "\<c-o>"
- endif
- endif
- endfunction
- nnoremap <Leader>j :call GotoJump()<CR>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement