This snippet will check every time you run Vim whether it updated all your Plug
packages for you. It will do this once a week automatically for you.
Add the following to your .vimrc
:
function! OnVimEnter() abort
" Run PlugUpdate every week automatically when entering Vim.
if exists('g:plug_home')
let l:filename = printf('%s/.vim_plug_update', g:plug_home)
if !filereadable(l:filename)