nvim: after/plugin: fugitive: Update gF and gE mapping
Often it is convenient to merge remote branch origin/foo into local branch foo, without having to checkout foo first. Use gF mapping for the same. One may edit alternate versions of the file in different branches using :Gedit <branch>:/path/to/file. Use gE mapping for the same.
This commit is contained in:
parent
65230f92a0
commit
3ba1673068
1 changed files with 2 additions and 2 deletions
|
@ -8,9 +8,9 @@ nnoremap <Leader>gC :Git checkout<SPACE>
|
|||
nnoremap <Leader>gd :Ghdiffsplit!<CR>
|
||||
nnoremap <Leader>gD :Gvdiffsplit!<CR>
|
||||
nnoremap <Leader>ge :sp<CR>:Gedit HEAD~:%<Left><Left>
|
||||
nnoremap <Leader>gE :sp<CR>:Gedit<SPACE>
|
||||
nnoremap <Leader>gE :sp<CR>:Gedit :%:p<Left><Left><Left><Left>
|
||||
nnoremap <Leader>gf :Git fetch --all<CR>
|
||||
nnoremap <Leader>gF :Git pull<CR>
|
||||
nnoremap <Leader>gF :Git fetch origin<SPACE>
|
||||
nnoremap <Leader>gl :Git log --stat %<CR>
|
||||
nnoremap <Leader>gL :Git log --stat -n 100<CR>
|
||||
xnoremap <Leader>gl :<C-U>call git#git_log_range()<CR>
|
||||
|
|
Loading…
Reference in a new issue