Monday, January 3, 2022

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

On 2022-01-03, Manfred Lotz <ml_news@posteo.de> wrote:
> 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.

I use this command to remove undo files that haven't changed in a long
time:

command! -nargs=0 CleanUpUndoFiles !find ~/.vim/tmp/undo -type f -mtime +100d -delete

This goes with this setting:

set undodir=~/.vim/tmp/undo

Life.

--
--
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/sqvrcm%247l8%242%40ciao.gmane.io.

No comments:

Post a Comment