Vigil wrote:
When a file is saved with :w, any changes in the undo history are lost and I can't undo things to get back to a state before I saved the file. How can I prevent the history being lost?


Huh?

When I save a file, undo levels are kept. Using u then undoes, but marks the file as modified. Using Ctrl-R redoes, and the 'modified' flag will disappear when the file-in-memory is identical to the file-on-disk.

The undo history is only lost when I close Vim with :qa


Best regards,
Tony.
--
"You can't have everything.  Where would you put it?"
                -- Steven Wright

Reply via email to