Vim Recall繁體中文

Switch off diff mode

:diffoff

Example

Normal 0 / 2

Switch off diff mode.

Windows

Window 2 · beta.txt
40 columns × 22 lines · diff
Window 1 · alpha.txt Active
39 columns × 22 lines · diff

Option · diff

Local diff
1
Global diff
0
Before & after

Before

Windows

Window 2 · beta.txt
40 columns × 22 lines · diff
Window 1 · alpha.txt Active
39 columns × 22 lines · diff

Option · diff

Local diff
1
Global diff
0

After

Windows

Window 2 · beta.txt
40 columns × 22 lines · diff
Window 1 · alpha.txt Active
39 columns × 22 lines

Option · diff

Local diff
0
Global diff
0

Start in Normal mode. Two temporary files differ on line two. This verified example requires the trusted local /usr/bin/diff utility, invoked with fixed arguments on Vim-owned temporary files.

Sample buffer
same first
old value
same last
Cursor on line 2, column 1
Details & Vim help

Example replayed in Vim

Switch off diff mode. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. The index spelling :diffo[ff] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.