mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-06 12:14:31 +08:00
Compare commits
3 Commits
0396246be2
...
8c55f7e784
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c55f7e784 | ||
|
|
b068eaf1e6 | ||
|
|
f2546146c4 |
@@ -7366,6 +7366,7 @@ function! s:BlameMaps(is_ftplugin) abort
|
|||||||
call s:Map('n', '~', ':<C-U>exe <SID>BlameJump("~".v:count1)<CR>', '<silent>', ft)
|
call s:Map('n', '~', ':<C-U>exe <SID>BlameJump("~".v:count1)<CR>', '<silent>', ft)
|
||||||
call s:Map('n', 'i', ':<C-U>exe <SID>BlameCommit("exe <SID>BlameLeave()<Bar>edit")<CR>', '<silent>', ft)
|
call s:Map('n', 'i', ':<C-U>exe <SID>BlameCommit("exe <SID>BlameLeave()<Bar>edit")<CR>', '<silent>', ft)
|
||||||
call s:Map('n', 'o', ':<C-U>exe <SID>BlameCommit("split")<CR>', '<silent>', ft)
|
call s:Map('n', 'o', ':<C-U>exe <SID>BlameCommit("split")<CR>', '<silent>', ft)
|
||||||
|
call s:Map('n', 'gO', ':<C-U>exe <SID>BlameCommit("vsplit")<CR>', '<silent>', ft)
|
||||||
call s:Map('n', 'O', ':<C-U>exe <SID>BlameCommit("tabedit")<CR>', '<silent>', ft)
|
call s:Map('n', 'O', ':<C-U>exe <SID>BlameCommit("tabedit")<CR>', '<silent>', ft)
|
||||||
call s:Map('n', 'p', ':<C-U>exe <SID>BlameCommit("pedit")<CR>', '<silent>', ft)
|
call s:Map('n', 'p', ':<C-U>exe <SID>BlameCommit("pedit")<CR>', '<silent>', ft)
|
||||||
exe s:Map('n', '.', ":<C-U> <C-R>=substitute(<SID>BlameCommitFileLnum()[0],'^$','@','')<CR><Home>", '', ft)
|
exe s:Map('n', '.', ":<C-U> <C-R>=substitute(<SID>BlameCommitFileLnum()[0],'^$','@','')<CR><Home>", '', ft)
|
||||||
@@ -8030,8 +8031,8 @@ function! fugitive#MapJumps(...) abort
|
|||||||
call s:MapMotion(']]', 'exe <SID>NextSection(v:count1)')
|
call s:MapMotion(']]', 'exe <SID>NextSection(v:count1)')
|
||||||
call s:MapMotion('[]', 'exe <SID>PreviousSectionEnd(v:count1)')
|
call s:MapMotion('[]', 'exe <SID>PreviousSectionEnd(v:count1)')
|
||||||
call s:MapMotion('][', 'exe <SID>NextSectionEnd(v:count1)')
|
call s:MapMotion('][', 'exe <SID>NextSectionEnd(v:count1)')
|
||||||
call s:Map('nxo', '*', '<SID>PatchSearchExpr(0)', '<expr>')
|
call s:Map('no', '*', '<SID>PatchSearchExpr(0)', '<expr>')
|
||||||
call s:Map('nxo', '#', '<SID>PatchSearchExpr(1)', '<expr>')
|
call s:Map('no', '#', '<SID>PatchSearchExpr(1)', '<expr>')
|
||||||
endif
|
endif
|
||||||
call s:Map('n', 'S', ':<C-U>echoerr "Use gO"<CR>', '<silent><unique>')
|
call s:Map('n', 'S', ':<C-U>echoerr "Use gO"<CR>', '<silent><unique>')
|
||||||
call s:Map('n', 'dq', ":<C-U>call fugitive#DiffClose()<CR>", '<silent>')
|
call s:Map('n', 'dq', ":<C-U>call fugitive#DiffClose()<CR>", '<silent>')
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ that are part of Git repositories).
|
|||||||
<CR> close blame, and jump to patch that added line
|
<CR> close blame, and jump to patch that added line
|
||||||
(or directly to blob for boundary commit)
|
(or directly to blob for boundary commit)
|
||||||
o jump to patch or blob in horizontal split
|
o jump to patch or blob in horizontal split
|
||||||
|
gO jump to patch or blob in vertical split
|
||||||
O jump to patch or blob in new tab
|
O jump to patch or blob in new tab
|
||||||
p jump to patch or blob in preview window
|
p jump to patch or blob in preview window
|
||||||
- reblame at commit
|
- reblame at commit
|
||||||
|
|||||||
Reference in New Issue
Block a user