Saturday, January 1, 2022

Re: Persistent undo and swapfile

First, thanks a lot for you very clear explanations.


On 1/1/22 12:33 AM, Bram Moolenaar wrote:
>
> Manfred Lotz wrote:
>
>> I have persistent undo configured and it helped me a lot in various situations
>> over the last 5 or so years.
>>
>> I also have swapfile configured but I am actually not sure if it is really
>> required if persistent undo is active.
>>
>> Any thoughts?
>
> You do need both.
>
> The persistent undo is great to be able to back in time, even when you
> unload the buffer, quit Vim and come back another day. I especially use
> it to add debugging commands, try lots of things, and finally just undo
> the changes. No version control system needed.
>

Yes, persistent undo is absolutely great.

> The swapfile is a safety net for the unexpected. Vim might crash. I
> know, for normal users this hardly ever happens, still I keep fixing
> crashes all the time (fuzzers try just about any random input to look
> for these problems). Or your computer might die. Hopefully that
> doesn't happen either. But still, it happens when you least expect it.
>

Very unlikely, but bad things can happen. Agree.


So, my setting using both is just fine.


--
Manfred

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/93cf9489-8b27-5ffa-d0c5-14e4e4cf2bc2%40posteo.de.

No comments: