From 9dfa35777083b4a5d70bd766b3c261a9cf9820dd Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 25 Aug 2011 19:08:23 -0400 Subject: [PATCH] :Ge in blank buffer goes to status --- plugin/fugitive.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index d8babb4..7754f22 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -999,6 +999,8 @@ function! s:Edit(cmd,bang,...) abort return '' elseif a:0 let file = s:buffer().expand(a:1) + elseif expand('%') ==# '' + let file = ':' elseif s:buffer().commit() ==# '' && s:buffer().path('/') !~# '^/.git\>' let file = s:buffer().path(':') else