per the recommendation in the
vim-plug wiki: https://github.com/junegunn/vim-plug/wiki/extra, I've added the following snippet to my vimrc:
" Install missing plugins on Vim startup autocmd VimEnter * \ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)')) \| PlugInstall --sync | q \| endif
This does indeed cause any missing plugins to be installed on Vim startup, but on subsequent launches on Ubuntu (18.04 LTS, with apt's version of vim and a version I built from source) the body of the if statement continues to evaluate to 1 (verified with
echomsg), so the plugin installation screen flashes every time I open vim.
This is not the case on macOS; once the plugins are installed for the first time, the body of the if statement no longer evaluates to 1, and the
PlugInstall screen no longer displays.
How would I go about fixing this?