From b295f49e93c78bc23e6212b34bf350b7f7c1a106 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 20 Dec 2018 13:12:23 -0500 Subject: [PATCH] Change :Gstatus U to g| I want U for a full `git reset`. This will probably end up on X, but I don't want to do a second abrupt transition, so for now, the official map is the ungainly g|. --- autoload/fugitive.vim | 3 ++- doc/fugitive.txt | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 4969cc9..bae8898 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1442,7 +1442,8 @@ function! fugitive#BufReadStatus() abort nnoremap q :if bufnr('$') == 1quitelsebdeleteendif nnoremap r :edit nnoremap R :edit - nnoremap U :execute StageUndo() + nnoremap U :echoerr 'Changed to g' + nnoremap g :execute StageUndo() nnoremap . : =fnameescape(StatusCfile()) nnoremap g? :help fugitive-:Gstatus nnoremap :help fugitive-:Gstatus diff --git a/doc/fugitive.txt b/doc/fugitive.txt index d3d9908..625694e 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -59,10 +59,10 @@ that are part of Git repositories). q close status r reload status S |:Gvsplit| - U |:Git| checkout - U |:Git| checkout HEAD (staged files) - U |:Git| clean (untracked files) - U |:Git| rm (unmerged files) + g| |:Git| checkout + g| |:Git| checkout HEAD (staged files) + g| |:Git| clean (untracked files) + g| |:Git| rm (unmerged files) . enter |:| command line with file prepopulated *fugitive-:Gcommit*