Monday, January 3, 2022

Re: [VIM] Re: [VIM] Re: Persistent undo and swapfile

On 1/3/22 10:07 PM, Walter Cazzola wrote:
> On Mon, 3 Jan 2022, Manfred Lotz wrote:
>
>> On 1/3/22 5:53 PM, Walter Cazzola wrote:
>>> Out of curiosity: which plugin are you using for the persistent undo.
>
>>> I have tried (few years ago) a few but they were quite unsatisfactory and
>>> being something I feel necessary I would like to get advice.
>
>> Same as Lifepillar I use undotree. However, I have to admit that I haven't
>> used it much.
>
> I see, my worry is that the stored undoes can grow too much on long living
> (ie., files that I uses since a lot and updates quite frequently as the
> .vimrc) files.
>

Hm, yes. Stored undos could grow but this should not cause problems, IMHO.

I have configured it like follows:

set undofile
set undolevels=5000
set undodir=~/.vim/undodir/


Another point might be interesting. In the undo directory there are undo files
where the real files don't exist any longer. Not sure if there is some cleanup
procedure avalaible.

--
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/8da1a259-17bd-1731-7c6e-91da418e8d0c%40posteo.de.

No comments: