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:
parent
9848348881
commit
f05e5bcd5d
1 changed files with 2 additions and 0 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue