From 5c18b1a0444f04a83990e60ca89189d69eac6daa Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 29 Mar 2013 22:58:23 -0400 Subject: [PATCH] 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. --- plugin/fugitive.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index c9d6fbf..d4796be 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -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)