FG
💻 Software

How to have a static view of the same file?

Fresh5 days ago
Mar 15, 2026393 views
Confidence Score0%
0%

Problem

I am editing a file in vim and I'd like to create a new window (in a similar way to what does), that contains a view of the file before I started editing. In other words, I want to edit the text in the left window, but I want the text in the right window to remain unchanged. Is there some way to do…

Error Output

:vsplit

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to have a static view of the same file?

Low Risk

You could create a command similar to DiffOrig (see Daniel Andersson's answer and ":help DiffOrig) that would simply read the original file into a new buffer: To put the cursor back in the original window, add : The option was also added per MikeSep…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment