On 2018-12-01, Ruben Safir <ruben.sa...@my.liu.edu> wrote:
> how did it help you.  You asked about history tmp files and the response
> was completely irrelevant.  Clue the rest of us in?

FWIW, I have this command in my vimrc:

  " Clean up old undo files
  command! -nargs=0 CleanUpUndoFiles
    \ !find ~/.vim/tmp/undo -type f
    \ -mtime +100d \! -name '.gitignore' -delete

Explanation:

!find ~/.vim/tmp/undo: find files in ~/.vim/tmp/undo...
-type f: ...which are files (not directories)...
-mtime +100d: ...and which are ~3 months old...
-delete: ...and delete them...
\! -name '.gitgnore': ...but do not touch `.gitignore`.

Btw, now that Vim has jobs, it would be nice if it had an option to
perform clean up tasks like this in the background.

Enjoy,
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to