mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 03:53:47 -05:00
Change vsplit map from S to gO
This commit is contained in:
@@ -3695,12 +3695,14 @@ function! fugitive#MapJumps(...) abort
|
|||||||
let nowait = v:version >= 704 ? '<nowait>' : ''
|
let nowait = v:version >= 704 ? '<nowait>' : ''
|
||||||
if get(b:, 'fugitive_type', '') ==# 'blob'
|
if get(b:, 'fugitive_type', '') ==# 'blob'
|
||||||
nnoremap <buffer> <silent> o :<C-U>.,.+1Gblame<CR>
|
nnoremap <buffer> <silent> o :<C-U>.,.+1Gblame<CR>
|
||||||
nnoremap <buffer> <silent> S :<C-U>vertical .,.+1Gblame<CR>
|
nnoremap <buffer> <silent> S :<C-U>echoerr 'Use gO'<CR>
|
||||||
|
nnoremap <buffer> <silent> gO :<C-U>vertical .,.+1Gblame<CR>
|
||||||
nnoremap <buffer> <silent> O :<C-U>tab .,.+1Gblame<CR>
|
nnoremap <buffer> <silent> O :<C-U>tab .,.+1Gblame<CR>
|
||||||
nnoremap <buffer> <silent> p :<C-U>.,.+2Gblame<CR>
|
nnoremap <buffer> <silent> p :<C-U>.,.+2Gblame<CR>
|
||||||
else
|
else
|
||||||
nnoremap <buffer> <silent> o :<C-U>exe <SID>GF("split")<CR>
|
nnoremap <buffer> <silent> o :<C-U>exe <SID>GF("split")<CR>
|
||||||
nnoremap <buffer> <silent> S :<C-U>exe <SID>GF("vsplit")<CR>
|
nnoremap <buffer> <silent> S :<C-U>echoerr 'Use gO'<CR>
|
||||||
|
nnoremap <buffer> <silent> gO :<C-U>exe <SID>GF("vsplit")<CR>
|
||||||
nnoremap <buffer> <silent> O :<C-U>exe <SID>GF("tabedit")<CR>
|
nnoremap <buffer> <silent> O :<C-U>exe <SID>GF("tabedit")<CR>
|
||||||
nnoremap <buffer> <silent> p :<C-U>exe <SID>GF("pedit")<CR>
|
nnoremap <buffer> <silent> p :<C-U>exe <SID>GF("pedit")<CR>
|
||||||
endif
|
endif
|
||||||
@@ -3710,7 +3712,8 @@ function! fugitive#MapJumps(...) abort
|
|||||||
nnoremap <buffer> <silent> C :<C-U>exe 'Gedit ' . <SID>fnameescape(<SID>ContainingCommit())<CR>
|
nnoremap <buffer> <silent> C :<C-U>exe 'Gedit ' . <SID>fnameescape(<SID>ContainingCommit())<CR>
|
||||||
nnoremap <buffer> <silent> cc :<C-U>exe 'Gedit ' . <SID>fnameescape(<SID>ContainingCommit())<CR>
|
nnoremap <buffer> <silent> cc :<C-U>exe 'Gedit ' . <SID>fnameescape(<SID>ContainingCommit())<CR>
|
||||||
nnoremap <buffer> <silent> co :<C-U>exe 'Gsplit ' . <SID>fnameescape(<SID>ContainingCommit())<CR>
|
nnoremap <buffer> <silent> co :<C-U>exe 'Gsplit ' . <SID>fnameescape(<SID>ContainingCommit())<CR>
|
||||||
nnoremap <buffer> <silent> cS :<C-U>exe 'Gvsplit ' . <SID>fnameescape(<SID>ContainingCommit())<CR>
|
nnoremap <buffer> <silent> cS :<C-U>echoerr 'Use cgO'<CR>
|
||||||
|
nnoremap <buffer> <silent> cgO :<C-U>exe 'Gvsplit ' . <SID>fnameescape(<SID>ContainingCommit())<CR>
|
||||||
nnoremap <buffer> <silent> cO :<C-U>exe 'Gtabedit ' . <SID>fnameescape(<SID>ContainingCommit())<CR>
|
nnoremap <buffer> <silent> cO :<C-U>exe 'Gtabedit ' . <SID>fnameescape(<SID>ContainingCommit())<CR>
|
||||||
nnoremap <buffer> <silent> cp :<C-U>exe 'Gpedit ' . <SID>fnameescape(<SID>ContainingCommit())<CR>
|
nnoremap <buffer> <silent> cp :<C-U>exe 'Gpedit ' . <SID>fnameescape(<SID>ContainingCommit())<CR>
|
||||||
nnoremap <buffer> cf :<C-U>Gcommit --fixup=<C-R>=<SID>SquashArgument()<CR>
|
nnoremap <buffer> cf :<C-U>Gcommit --fixup=<C-R>=<SID>SquashArgument()<CR>
|
||||||
|
|||||||
@@ -55,17 +55,17 @@ that are part of Git repositories).
|
|||||||
dp |:Git!| diff (p for patch; use :Gw to apply)
|
dp |:Git!| diff (p for patch; use :Gw to apply)
|
||||||
dp |:Git| add --intent-to-add (untracked files)
|
dp |:Git| add --intent-to-add (untracked files)
|
||||||
dv |:Gvdiff|
|
dv |:Gvdiff|
|
||||||
|
gO |:Gvsplit|
|
||||||
|
g| |:Git| checkout
|
||||||
|
g| |:Git| checkout HEAD (staged files)
|
||||||
|
g| |:Git| clean (untracked files)
|
||||||
|
g| |:Git| rm (unmerged files)
|
||||||
O |:Gtabedit|
|
O |:Gtabedit|
|
||||||
o |:Gsplit|
|
o |:Gsplit|
|
||||||
P |:Git| add --patch
|
P |:Git| add --patch
|
||||||
P |:Git| reset --patch (staged files)
|
P |:Git| reset --patch (staged files)
|
||||||
q close status
|
q close status
|
||||||
r reload status
|
r reload status
|
||||||
S |:Gvsplit|
|
|
||||||
g| |:Git| checkout
|
|
||||||
g| |:Git| checkout HEAD (staged files)
|
|
||||||
g| |:Git| clean (untracked files)
|
|
||||||
g| |:Git| rm (unmerged files)
|
|
||||||
. enter |:| command line with file prepopulated
|
. enter |:| command line with file prepopulated
|
||||||
|
|
||||||
*fugitive-:Gcommit*
|
*fugitive-:Gcommit*
|
||||||
@@ -287,8 +287,8 @@ These maps are available in committed Git objects.
|
|||||||
o Jump to the |fugitive-object| under the cursor in a
|
o Jump to the |fugitive-object| under the cursor in a
|
||||||
new split.
|
new split.
|
||||||
|
|
||||||
*fugitive-S*
|
*fugitive-gO*
|
||||||
S Jump to the |fugitive-object| under the cursor in a
|
gO Jump to the |fugitive-object| under the cursor in a
|
||||||
new vertical split.
|
new vertical split.
|
||||||
|
|
||||||
*fugitive-O*
|
*fugitive-O*
|
||||||
|
|||||||
Reference in New Issue
Block a user