Jump to content

How can I use Vim as my diff tool, why is it "not found"?


Recommended Posts

I previously managed to get Vim added as a merge tool but now for some reason it is shown as not valid.



I have used as many variations of the following exes and arguments and none of them work:

  • "c:\Program Files (x86)\Vim\vim82\gvim.exe" -c "wincmd J" -c "windo set wrap" "@output" "@destinationfile" "@basefile" "@sourcefile"
  • "c:\Program Files (x86)\Vim\vim82\vim.exe" -d -c "wincmd J" -c "windo set wrap" "@output" "@destinationfile" "@basefile" "@sourcefile"
  • "c:\Program Files (x86)\Vim\vim82\vimdiff.exe" "@destinationfile" "@basefile"

Could you help?

  • Could you add some more helpful error messages when external tools are "not found"?
  • Could you show me the format required to get Vim as a merge tool?


Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

Hey @ben

I've also had troubles getting vim/neovim working as a merge tool (This could well be down to my lack of vim knowledge though!). You mention that you managed to get this working previously. Do you happen to know what version? I tried on to no avail with the following command...

"c:\Program Files (x86)\Vim\vim82\vim.exe" -d "@output" "@sourcefile" "@basefile" "@destinationfile" -c 'wincmd J | wincmd ='

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...