dotfiles/nvim/.config/nvim/plugin/gitjump.vim
Sanchayan Maity df18cc7ec4 nvim: plugin: gitjump: Git jump integration with vim
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-05-19 15:57:53 +05:30

10 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>))