On Macbook Pro, Terminal, standard Vim, VimPlug
When I start vim I get the following message:
Error detected while processing /Users/me/.vimrc:
line 159:
E117: Unknown function: plug#begin
In my .vimrc I have the following:
call plug#begin('~/.vim/plugged')
[a bunch of plugins]
call plug#end()
As far as I can tell the setup is correct but vim doesn't recognize the function so it can't load any of my plugins. Everything was working before. I figured this has something to do with the plug.vim in ~/.vim/autoload. However when I try to access the autoload directory I get this error:
cd: permission denied: autoload
This might explain why vim isn't able to call the plug#begin function, but I don't know how to fix it.
UPDATE: Output of ls -l ~/.vim
:
total 0
drwxr-x--- 5 root wheel 160 Feb 27 10:27 autoload
drwxr-xr-x 8 gabe staff 256 Nov 27 14:40 colors
drwxr-xr-x 30 gabe staff 960 Feb 27 10:19 plugged
drwxr-xr-x 370 gabe staff 11840 Feb 27 17:13 view
ls -l ~/.vim/
look like?chmod +x ~/.vim/autoload
might resolve at least part of the problem...total 0
drwxr-x--- 5 root wheel 160 Feb 27 10:27 autoload
drwxr-xr-x 8 gabe staff 256 Nov 27 14:40 colors
drwxr-xr-x 30 gabe staff 960 Feb 27 10:19 plugged
drwxr-xr-x 370 gabe staff 11840 Feb 27 17:13 view
chmod: Unable to change file mode on /Users/gabe/.vim/autoload: Operation not permitted