Vimdiff

Diff tool built into Vim editor. Side-by-side comparison with direct editing in diff mode.

Открытый исходный кодКомандная строка
Windows, macOS, Linux⭐⭐Free (Charityware)

Описание

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.

Ключевые функции

  • 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

Установка

# 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.php

Использование

# 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)

Плюсы

  • +No additional installation for Vim users
  • +Powerful editing while comparing
  • +Highly customizable
  • +Very fast and lightweight
  • +Available everywhere Vim is

Минусы

  • -Requires Vim knowledge
  • -No GUI, steep learning curve
  • -Limited to text files
  • -No directory comparison

Краткая информация

Тип
Открытый исходный код
Платформы
Windows, macOS, Linux
Цена
Free (Charityware)
Категория
Командная строка
Популярность
⭐⭐

Альтернативы

  • Meld
  • Delta
  • GNU Diffutils