From 2bfb6e98899f5efc133f5162d254f0b6ee817599 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 24 Jul 2019 16:17:03 -0400 Subject: [PATCH] Reverse inline diff mappings References https://github.com/tpope/vim-fugitive/issues/1199 --- autoload/fugitive.vim | 8 ++++---- doc/fugitive.txt | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 18cc924..bd8e966 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1799,11 +1799,11 @@ function! fugitive#BufReadStatus() abort nnoremap a :execute Do('Toggle',0) nnoremap i :execute NextExpandedHunk(v:count1) exe 'nnoremap ' nowait "= :execute StageInline('toggle',line('.'),v:count)" - exe 'nnoremap ' nowait "< :execute StageInline('show', line('.'),v:count)" - exe 'nnoremap ' nowait "> :execute StageInline('hide', line('.'),v:count)" + exe 'nnoremap ' nowait "< :execute StageInline('hide', line('.'),v:count)" + exe 'nnoremap ' nowait "> :execute StageInline('show', line('.'),v:count)" exe 'xnoremap ' nowait "= :execute StageInline('toggle',line(\"'<\"),line(\"'>\")-line(\"'<\")+1)" - exe 'xnoremap ' nowait "< :execute StageInline('show', line(\"'<\"),line(\"'>\")-line(\"'<\")+1)" - exe 'xnoremap ' nowait "> :execute StageInline('hide', line(\"'<\"),line(\"'>\")-line(\"'<\")+1)" + exe 'xnoremap ' nowait "< :execute StageInline('hide', line(\"'<\"),line(\"'>\")-line(\"'<\")+1)" + exe 'xnoremap ' nowait "> :execute StageInline('show', line(\"'<\"),line(\"'>\")-line(\"'<\")+1)" nnoremap D :execute StageDiff('Gdiffsplit') nnoremap dd :execute StageDiff('Gdiffsplit') nnoremap dh :execute StageDiff('Ghdiffsplit') diff --git a/doc/fugitive.txt b/doc/fugitive.txt index 6437902..079dbc1 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -264,11 +264,11 @@ X Discard the change under the cursor. This uses *fugitive_=* = Toggle an inline diff of the file under the cursor. - *fugitive_<* -< Insert an inline diff of the file under the cursor. - *fugitive_>* -> Remove the inline diff of the file under the cursor. +> Insert an inline diff of the file under the cursor. + + *fugitive_<* +< Remove the inline diff of the file under the cursor. P Invoke |:Git| add --patch or reset --patch on the file under the cursor. On untracked files, this instead