Use neovim as git diff tool

Huy
The Full Snack Developer
1 min readAug 4, 2016

If you are using neovim instead of vim, you may find it’s annoying to use vimdiff because all your config in neovim doesn’t applied to vimdiff.

Neovim has a diff tool: nvim -d

But it takes different arguments than vimdiff, so, to use it as a replacement for vimdiff, you have to config the tool manually, edit your ~/.gitconfig file:

Now you can type:

git difftool <blah-blah>

If you’re lazy, just set the alias:

git config --global alias.d vimdiffgit d <blah-blah>

Happy Vimming ^^

--

--

Huy
The Full Snack Developer

I write code, draw stuff. Currently interested in Machine Learning and Note Taking Techniques.