mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 14:23:51 -05:00
Press - on first line of :Gstatus to edit .git
This is a bit silly, but provides a quick way to start navigating the repository. Press it a second time and you're in the work tree root.
This commit is contained in:
@@ -801,6 +801,9 @@ function! s:StageDiffEdit() abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:StageToggle(lnum1,lnum2) abort
|
function! s:StageToggle(lnum1,lnum2) abort
|
||||||
|
if a:lnum1 == 1 && a:lnum2 == 1
|
||||||
|
return 'Gedit /.git|call search("^index$", "wc")'
|
||||||
|
endif
|
||||||
try
|
try
|
||||||
let output = ''
|
let output = ''
|
||||||
for lnum in range(a:lnum1,a:lnum2)
|
for lnum in range(a:lnum1,a:lnum2)
|
||||||
|
|||||||
Reference in New Issue
Block a user