Using vim as git difftool

I’ve configured Vim as git difftool in .gitconfig

    tool = vimdiff

If there are changes in N files, i have to close vim (:qa) to see the next diff.

How do i navigate to the next/previous diff without quitting vim?

  • How do I make gvimdiff opened by git mergetool open all files at once in tabs?
  • Force git show to show diff using vimdiff
  • git and vimdiff - close all files at once
  • Why does git mergetool opens 4 windows in vimdiff? (I'd expect 3)
  • Please review my config. My vimdiff not working with GIT after setup
  • The colors are jacked up when using Vimdiff from Git in Windows
  • Viewing all `git diffs` with vimdiff
  • git, vimdiff and dirdiff
  • One Solution collect form web for “Using vim as git difftool”

    There is no way to tell vimdiff to go to the next file, because git difftool invocates vimdiff for each diff file.

    So when you end vimdiff with qa, git diff executes vimdiff again with the next file. From vimdiff’s perspective there is no next diff file.

    You can suppress the prompt for launching vimdiff, which makes it less annoying:

    git config --global difftool.prompt false

    But, as you already found out yourself, the vim plugin vim-fugitive is the way to go. This excellent plugin offers various commands for diffing and merging.

    Git Baby is a git and github fan, let's start git clone.