nvim: after/plugin: fugitive: Add a key mapping for Gedit

Gedit is helpful to open up previous versions of the file. For example,
:Gedit HEAD~3:% loads the current file as it existed 3 commits ago.
This commit is contained in:
Sanchayan Maity 2021-05-18 11:33:32 +05:30
parent 9848348881
commit f05e5bcd5d

View file

@ -6,6 +6,8 @@ nnoremap <Leader>gc :Git checkout -b<SPACE>
nnoremap <Leader>gC :Git checkout<SPACE> nnoremap <Leader>gC :Git checkout<SPACE>
nnoremap <Leader>gd :Ghdiffsplit!<CR> nnoremap <Leader>gd :Ghdiffsplit!<CR>
nnoremap <Leader>gD :Gvdiffsplit!<CR> nnoremap <Leader>gD :Gvdiffsplit!<CR>
nnoremap <Leader>ge :sp<CR>:Gedit HEAD~:%<Left><Left>
nnoremap <Leader>gE :sp<CR>:Gedit<SPACE>
nnoremap <Leader>gl :Git log --stat %<CR> nnoremap <Leader>gl :Git log --stat %<CR>
nnoremap <Leader>gL :Git log --stat -n 100<CR> nnoremap <Leader>gL :Git log --stat -n 100<CR>
xnoremap <Leader>gl :<C-U>call git#git_log_range()<CR> xnoremap <Leader>gl :<C-U>call git#git_log_range()<CR>