# HG changeset patch # User Meredith Howard # Date 1630088046 18000 # Node ID e0ff02862951c1520f7e2babf17549d541f08388 # Parent 1d3b41412cf64579e7d0462463a300d12a0a2847 rubyize PruneFiles diff --git a/.vim/autoload/vimrc.vim b/.vim/autoload/vimrc.vim --- a/.vim/autoload/vimrc.vim +++ b/.vim/autoload/vimrc.vim @@ -111,13 +111,25 @@ func! vimrc#PrepDir(path) abort endif endfunc +if has('ruby') + func! s:PruneFiles(path, days) abort + ruby < getftime(file) + 86400 * a:days - call delete(file) - endif - endfor - endif + call s:PruneFiles(a:path, a:days) endfunc +