commit bfdcdf1fbd11d8e7a662ff198fe5eebf32950db1 (tree)
parent ec49a84cb76f3e58d95d20cf3fa7a0097f7a18f3
Author: Tim Pope <code@tpope.net>
Date: Sun, 10 Jan 2010 00:04:58 -0500
:Gwrite in :Gstatus invokes :Gcommit
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -767,6 +767,8 @@ function! s:Write(force,...) abort
return 'write|bdelete'
elseif expand('%:t') == 'COMMIT_EDITMSG' && $GIT_INDEX_FILE != ''
return 'wq'
+ elseif s:buffer().type() == 'index'
+ return 'Gcommit'
endif
let mytab = tabpagenr()
let mybufnr = bufnr('')