X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=blobdiff_plain;f=.vim%2Fplugin%2Ftmpwatch.vim;h=0db1dddeeb9351796c47417b5e847516fac83652;hp=cdd1be0ed5fcf09932a61daa7bf1c4fb03654414;hb=7815b8b7ca790bb55b7e5306da2fc45528e1d8c8;hpb=8635530c0d2dc87e18ad6670ce2e08bb151933ef diff --git a/.vim/plugin/tmpwatch.vim b/.vim/plugin/tmpwatch.vim index cdd1be0..0db1ddd 100644 --- a/.vim/plugin/tmpwatch.vim +++ b/.vim/plugin/tmpwatch.vim @@ -5,11 +5,11 @@ function Tmpwatch(path, days) if isdirectory(l:path) for file in split(globpath(l:path, "*"), "\n") if localtime() > getftime(file) + 86400 * a:days && delete(file) != 0 - echo "Tmpwatch(): Error deleting '" . file . "'" + echoerr "Tmpwatch(): Error deleting '" . file . "'" endif endfor else - echo "Tmpwatch(): Directory '" . l:path . "' not found" + echoerr "Tmpwatch(): Directory '" . l:path . "' not found" endif endfunction