Skip to content

Instantly share code, notes, and snippets.

@petros
Created November 12, 2010 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petros/673510 to your computer and use it in GitHub Desktop.
Save petros/673510 to your computer and use it in GitHub Desktop.
Configuring git to work with vimdiff

You can configure git to work with vimdiff issuing the following two commands in terminal:

git config --global diff.tool vimdiff
git config --global difftool.prompt false

Two examples of how you can use this:

git difftool HEAD
git difftool HEAD path-and-filename-of-specific-file

You can quit all files with:

:qall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment