X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.vim%2Fplugin%2Ftmpwatch.vim;h=cdd1be0ed5fcf09932a61daa7bf1c4fb03654414;hb=02382ef710f05b6939bdc54b9b1ab7ef248dc104;hp=98a7062c60e3d4494693cb88add4c03059eef10d;hpb=2677c7ba5c07f723b6906bef6da70e7016d1d6f2;p=dotfiles.git diff --git a/.vim/plugin/tmpwatch.vim b/.vim/plugin/tmpwatch.vim index 98a7062..cdd1be0 100644 --- a/.vim/plugin/tmpwatch.vim +++ b/.vim/plugin/tmpwatch.vim @@ -14,7 +14,7 @@ function Tmpwatch(path, days) endfunction " undofile part of your .vimrc -if exists("+undofile") +if exists("+undofile") && !empty(&undodir) && (&undodir != '.') " remove undo files which have not been modified for 31 days call Tmpwatch(&undodir, 31) endif