I am editing a file in vim and I'd like to create a new window (in a similar way to what :vsplit
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 this in vim, or do I have copy the file to a temporary file and open that in the new window?