9 lines
474 B
VimL
9 lines
474 B
VimL
" Taken from https://gist.github.com/romainl/a3ddb1d08764b93183260f8cdf0f524f
|
|
" The original script can be found at https://github.com/git/git/tree/master/contrib/git-jump
|
|
nnoremap <Leader>jd :GitJump diff<CR>
|
|
nnoremap <Leader>jm :GitJump merge<CR>
|
|
nnoremap <Leader>jg :GitJump grep<SPACE>
|
|
nnoremap <Leader>jc :exe ':GitJump grep ' . expand('<cword>')<CR>
|
|
nnoremap <Leader>jw :GitJump ws<CR>
|
|
|
|
command! -bar -nargs=* GitJump cexpr system('git jump ' . expand(<q-args>))
|