summaryrefslogtreecommitdiffstats
path: root/bin/clean-vim-undo
diff options
context:
space:
mode:
Diffstat (limited to 'bin/clean-vim-undo')
-rwxr-xr-xbin/clean-vim-undo13
1 files changed, 0 insertions, 13 deletions
diff --git a/bin/clean-vim-undo b/bin/clean-vim-undo
deleted file mode 100755
index efcd3aa..0000000
--- a/bin/clean-vim-undo
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env perl
-use strict;
-use warnings;
-
-my $undodir = "$ENV{HOME}/.cache/vim/undo";
-opendir my $undo, $undodir
- or die "can't open $undodir: $!";
-
-for my $undofile (readdir($undo)) {
- next unless -f "$undodir/$undofile";
- (my $file = $undofile) =~ s{%}{/}g;
- unlink "$undodir/$undofile" unless -e $file && $file =~ m{^/};
-}