mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 06:13:51 -05:00
Switch :Gblame <CR> to open commit
This is more useful than the previous behavior of reblaming at that commit. Said behavior is still available on -.
This commit is contained in:
@@ -182,7 +182,7 @@ that are part of Git repositories).
|
|||||||
D resize to end of date/time column
|
D resize to end of date/time column
|
||||||
q close blame and return to blamed window
|
q close blame and return to blamed window
|
||||||
gq q, then |:Gedit| to return to work tree version
|
gq q, then |:Gedit| to return to work tree version
|
||||||
i q, then open commit
|
<CR> q, then open commit
|
||||||
o open commit in horizontal split
|
o open commit in horizontal split
|
||||||
O open commit in new tab
|
O open commit in new tab
|
||||||
- reblame at commit
|
- reblame at commit
|
||||||
|
|||||||
@@ -1631,7 +1631,7 @@ function! s:Blame(bang,line1,line2,count,args) abort
|
|||||||
execute "vertical resize ".(s:linechars('.\{-\}\ze\s\+\d\+)')+1)
|
execute "vertical resize ".(s:linechars('.\{-\}\ze\s\+\d\+)')+1)
|
||||||
nnoremap <buffer> <silent> q :exe substitute(bufwinnr(b:fugitive_blamed_bufnr).' wincmd w<Bar>'.bufnr('').'bdelete','^-1','','')<CR>
|
nnoremap <buffer> <silent> q :exe substitute(bufwinnr(b:fugitive_blamed_bufnr).' wincmd w<Bar>'.bufnr('').'bdelete','^-1','','')<CR>
|
||||||
nnoremap <buffer> <silent> gq :exe substitute(bufwinnr(b:fugitive_blamed_bufnr).' wincmd w<Bar>'.bufnr('').'bdelete<Bar>if expand("%:p") =~# "^fugitive:[\\/][\\/]"<Bar>Gedit<Bar>endif','^-1','','')<CR>
|
nnoremap <buffer> <silent> gq :exe substitute(bufwinnr(b:fugitive_blamed_bufnr).' wincmd w<Bar>'.bufnr('').'bdelete<Bar>if expand("%:p") =~# "^fugitive:[\\/][\\/]"<Bar>Gedit<Bar>endif','^-1','','')<CR>
|
||||||
nnoremap <buffer> <silent> <CR> :<C-U>exe <SID>BlameJump('')<CR>
|
nnoremap <buffer> <silent> <CR> :<C-U>exe <SID>BlameCommit("exe 'norm q'<Bar>edit")<CR>
|
||||||
nnoremap <buffer> <silent> - :<C-U>exe <SID>BlameJump('')<CR>
|
nnoremap <buffer> <silent> - :<C-U>exe <SID>BlameJump('')<CR>
|
||||||
nnoremap <buffer> <silent> P :<C-U>exe <SID>BlameJump('^'.v:count1)<CR>
|
nnoremap <buffer> <silent> P :<C-U>exe <SID>BlameJump('^'.v:count1)<CR>
|
||||||
nnoremap <buffer> <silent> ~ :<C-U>exe <SID>BlameJump('~'.v:count1)<CR>
|
nnoremap <buffer> <silent> ~ :<C-U>exe <SID>BlameJump('~'.v:count1)<CR>
|
||||||
|
|||||||
Reference in New Issue
Block a user