gv.vim icon indicating copy to clipboard operation
gv.vim copied to clipboard

Diff command/pager settings

Open B4rc1 opened this issue 5 years ago • 2 comments

Is there any way to change the way diffs are displayed? I already google around and searched the issues of this repo but found nothing. I have delta setup in my .gitconifg like so:

[core]
  pager = delta

Is there any way to change the gv.vim diffs to also use delta as a pager?

This screenshot sums my problem up pretty well: Left is gv.vim diffing the last commit and to the right is the output of git diff HEAD~1 which does the same.

gv vim_vs_pager

B4rc1 avatar Nov 10 '20 15:11 B4rc1

any update on this issue or if its feasible?

princejoogie avatar Nov 03 '22 04:11 princejoogie

What you're seeing is a fugitive buffer, not a terminal output. Since modern versions of Vim have built-in terminal emulator, we can use it to show the terminal output of git show OBJECT instead of relying on fugitive. But then we lose the ability to navigate the objects using fugitive maps (:help fugitive-navigation-maps) which I find invaluable.

junegunn avatar Nov 03 '22 05:11 junegunn