Git diff on Vim with fugitive
Published on 03 Jul 2020
To compare a file across branches:
GIVEN:
my_file.rbon branchfoomy_file.rbon branchbar
- Install the fugitive plugin by Tim Pope.
- Open the
my_file.rbin Neovim. :Gdiff bar:%(branch isbar, file is current file[%])