vimdiff

Open up to four files in vim and show the differences between them. See `vim` documentation for working with files and navigating within a window.

Install

All systems
curl cmd.cat/vimdiff.sh
Debian Debian
apt-get install vim
Ubuntu
apt-get install vim
Alpine
apk add vim
Arch Arch Linux
pacman -S vim
image/svg+xml Kali Linux
apt-get install vim
Fedora
dnf install vim-enhanced-2
OS X
brew install vim
Raspbian
apt-get install vim
Docker
docker run cmd.cat/vimdiff vimdiff powered by Commando

Open up to four files in vim and show the differences between them. See `vim` documentation for working with files and navigating within a window.

  • Open two files and show the differences (up to four files can be compared):
    vimdiff file1 file2
  • Open two files using a horizontal window split instead of the default vertical split:
    vimdiff -o file1 file2
  • Move the cursor to the window on the left|right|up|down:
    Ctrl + w h|l|k|j

© tl;dr; authors and contributors