Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a neovim version of vimdiff

Tags:

neovim

I've started using nvim (neovim) recently. It generally works well, but when I run vimdiff, I noticed that I got the startup errors I got when I ran regular vim. I've fixed those so that both vim and nvim run without errors on my system, so vimdiff works fine now. But it makes me wonder: is there a neovim version of vimdiff? Or should I just maintain both vim and neovim so that regular vim works fine for vimdiff?

like image 261
firebush Avatar asked Sep 01 '25 11:09

firebush


2 Answers

Yeah, you can use the -d option to open nvim in diff mode.

like image 71
Gavin Haynes Avatar answered Sep 05 '25 22:09

Gavin Haynes


I noticed a question about this was posted on redit: https://www.reddit.com/r/neovim/comments/6rvsa2/nvimdiff/

The dialog there confirms that there is no corresponding nvimdiff that is shipped. The solution suggested there is to add an alias in your bashrc file:

alias vimdiff='nvim -d'

I'll do this.

like image 34
firebush Avatar answered Sep 05 '25 23:09

firebush