How to setup coloured git diff with vim as a pager
问题 I am unable to configure git to follow my requests: use vim as a diff pager keep colours for diff when adding files in interactive mode My ~/.gitconfig setup: [color] ui = auto # diff = false [pager] diff = vim - With this configuration the interactive mode for git add --interactive produces coloured output as expected: The downside of this is that diff in vim is corrupted. See the output of git diff : When using git diff | vim - the colours are OK but I'm too lazy to type the full command.