A.J.Mechelynck wrote:
> 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.

This is my experience as well.

Undo levels are only lost when I close Vim, when I reopen the file with
:e, or when Vim alerts me that the file has been changed and reloads it.
The latter can be dangerous if you're not careful, and I'd appreciate
any tips to work around it.


Tobia

Reply via email to