nvim: plugin: gitjump: Git jump integration with vim

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-05-19 15:54:50 +05:30
parent 5db0a2f0c2
commit df18cc7ec4

View file

@ -0,0 +1,9 @@
" 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>))