Vimdiff
Diff tool built into Vim editor. Side-by-side comparison with direct editing in diff mode.
Open SourceLigne de Commande
Windows, macOS, Linux⭐⭐Free (Charityware)
Description
Vimdiff is a diff mode built into the Vim text editor. It opens multiple files in split windows for side-by-side comparison, highlighting the differences. For Vim users, it's a powerful tool that combines diff viewing with Vim's editing capabilities.
Caractéristiques principales
- Built into Vim, no additional installation needed
- Side-by-side comparison in split windows
- Syntax highlighting for many languages
- Direct editing in diff mode
- Fully customizable with Vim commands
- Diff update in real-time
- Jump between differences with shortcuts
- Obtain/put changes between buffers
Installation
# Usually pre-installed on Linux/macOS
# Install Vim if not present
# Ubuntu/Debian
sudo apt install vim
# macOS
brew install vim
# Windows
# Download from https://www.vim.org/download.phpUtilisation
# Compare two files
vimdiff file1.txt file2.txt
# Compare three files
vimdiff file1.txt file2.txt file3.txt
# Key shortcuts in diff mode:
# ]c - jump to next difference
# [c - jump to previous difference
# do - diff obtain (get from other window)
# dp - diff put (send to other window)Avantages
- +No additional installation for Vim users
- +Powerful editing while comparing
- +Highly customizable
- +Very fast and lightweight
- +Available everywhere Vim is
Inconvénients
- -Requires Vim knowledge
- -No GUI, steep learning curve
- -Limited to text files
- -No directory comparison
Informations rapides
- Type
- Open Source
- Plateformes
- Windows, macOS, Linux
- Tarification
- Free (Charityware)
- Catégorie
- Ligne de Commande
- Popularité
- ⭐⭐
Alternatives
- Meld
- Delta
- GNU Diffutils
Outils associés
diff-so-fancy
Good-lookin' diffs. A tool that makes your diffs human-readable instead of machine-readable.
Meld
Visual diff and merge tool for developers. Compare files, directories, and version controlled projects.
KDiff3
Free diff and merge program for comparing or merging two or three files/directories.
WinMerge
Open Source differencing and merging tool for Windows. Compare folders and files visually.