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