Say I have vim-plug installed
But before calling call plug#begin()
, I want to check if this function exists
How to perform this check?
I tried the following:
echom empty(g:plug)
echom empty(plug)
echom empty(plug#begin)
But all of the above led to an "Undefined variable" error, although the function was defined and calling it was successful.