Closed SevereOverfl0w closed 7 years ago
It is a Vim's problem.
echo "Hello\nWorld" > a.txt
echo "Hello\nworld" > b.txt
echo "foobar" > c.txt
vim
:e a.txt
:diffthis
:enew b.txt
:diffthis
:q
Additionally, it is really problem when you open a different buffer like
:enew c.txt
:diffthis
I see. Looks like fugitive includes an aucmd to change this behaviour https://github.com/tpope/vim-fugitive/blob/d6e7e20123ef3892c041e4d9fbaf67a68b144a94/plugin/fugitive.vim#L1682-L1692
Reproduce:
:Gina patch
:q
(in index):diffoff
seems to turn off the highlighting as a workaround. But there is probably a proper way to do it.