Equivalent to :diffget
do
Example
Normal 0 / 1Normal 1 / 1same first
old value
same lastCursor on line 2, column 1same first
new value
same lastCursor on line 2, column 1Equivalent to :diffget.
Buffers
- 2 · alpha.txt Active
loaded · listed · same first ↩ old value- 3 · beta.txt
loaded · listed · alternate · same first ↩ new value
Option · diff
- Local diff
1- Global diff
0
Command applied
Buffers
- 2 · alpha.txt Active
loaded · listed · modified · same first ↩ new value- 3 · beta.txt
loaded · listed · alternate · same first ↩ new value
Option · diff
- Local diff
1- Global diff
0
Before & after
same first
old value
same lastCursor on line 2, column 1Buffers
- 2 · alpha.txt Active
loaded · listed · same first ↩ old value- 3 · beta.txt
loaded · listed · alternate · same first ↩ new value
Option · diff
- Local diff
1- Global diff
0
same first
new value
same lastCursor on line 2, column 1Buffers
- 2 · alpha.txt Active
loaded · listed · modified · same first ↩ new value- 3 · beta.txt
loaded · listed · alternate · same first ↩ new value
Option · diff
- Local diff
1- Global diff
0
Start in Normal mode. Diff navigation uses the trusted local /usr/bin/diff utility with fixed temporary-file arguments; no project or user files are read.
Details & Vim help
Example replayed in Vim
Equivalent to :diffget. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.