From 4c7998f58c9f623d455bbe946e719c6fd1d729e4 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 1 Jan 2019 13:51:41 -0500 Subject: [PATCH] Add :G as alias for :Gstatus --- autoload/fugitive.vim | 1 + doc/fugitive.txt | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index cacd32e..8b820b2 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1845,6 +1845,7 @@ call s:command("-bar -bang -nargs=? -complete=customlist,s:DirComplete Glcd :exe " Section: :Gstatus call s:command("-bar -bang -range=-1 Gstatus :execute s:Status(0, , '')") +call s:command("-bar -bang -range=-1 G :execute s:Status(0, , '')") augroup fugitive_status autocmd! if !has('win32') diff --git a/doc/fugitive.txt b/doc/fugitive.txt index dd9ca36..3e86781 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -29,9 +29,9 @@ that are part of Git repositories). *fugitive-:Glcd* :Glcd [directory] |:lcd| relative to the repository. - *fugitive-:Gstatus* -:Gstatus Bring up the output of git-status in the preview - window. The following maps, which work on the cursor + *fugitive-:Gstatus* *fugitive-:G* +:Gstatus Bring up a git-status inspired summary in the preview +:G window. The following maps, which work on the cursor line file where sensible, are provided: g? show this help @@ -40,7 +40,6 @@ that are part of Git repositories). |:Gedit| - |:Git| add - |:Git| reset (staged files) - a Show alternative format ca |:Gcommit| --amend cc |:Gcommit| ce |:Gcommit| --amend --no-edit