Versions of things:
- OS: Win 8.1
- Vim: 8.1
- Git: 2.18.0.windows.1
- GNU bash: 4.4.19(2)
I am trying to use vimdiff in Git Bash but I get E97:Cannot create diffs error. From there both files are open next to each other but there is no syntax help for the differences. Once I quit both files and go back to the bash terminal I see this:
/usr/bin/bash: /usr/share/vim/vim81diff: No such file or directory
It looks to me like Git Bash is looking in the wrong place for the diff program. But it still passes the files into vim so I am not sure. Git Bash has brought its own copy of vim where all the support files are in
/usr/share/vim/vim81/
but the exes (vimdiff.exe, vim.exe, etc) are in
/usr/bin/
if I run
$ which -a vimdiff
it returns
/usr/bin/vimdiff
/bin/vimdiff
/usr/bin/vimdiff
This is from a fresh install of Git.
I have used the full path to the vimdiff in the Git Bash folder. I have also created two test files and run vimdiff on them inside of the /usr/bin/ directory and got the same results.
If I use my local install of vim by going to cmd and go to the same directory and use them on the same files it works as expected. This is just happening in Git Bash. I would like to have vimdiff set as my git difftool but need to get vimdiff working.
Any idea about what is causing this and how to resolve it?