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