Friday, December 31, 2021

Re: Persistent undo and swapfile

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.

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.

--
Living in Hollywood is like living in a bowl of granola. What ain't
fruits and nuts is flakes.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
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/20211231233317.487E01C0A5B%40moolenaar.net.

No comments: