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:
Tim Pope 2013-03-29 22:58:23 -04:00
parent 4c7e649efb
commit 5c18b1a044

View File

@ -801,6 +801,9 @@ function! s:StageDiffEdit() abort
endfunction
function! s:StageToggle(lnum1,lnum2) abort
if a:lnum1 == 1 && a:lnum2 == 1
return 'Gedit /.git|call search("^index$", "wc")'
endif
try
let output = ''
for lnum in range(a:lnum1,a:lnum2)