Installing plugins through vim-plug involves putting the following code inside the vimrc file.
call plug#begin('~/.vim/plugged') Plug 'user/repository' call plug#end()
I install a lot of plugins, and I don't want to put all the code inside the main configuration file. I'd instead like to source it from a separate file dedicated to plugins.
I name that file as
Plugins.vim and source it inside the main
vimrc file putting the following in the first line.
Unfortunately, the plugins don't get loaded, and even though Vim reads the file, it outputs error messages relating to that line where it is being asked to source.
I tried to fix it by changing the path and file permissions but with no results.
The vimrc file may be located inside the home directory as
.vimrc or in
.vim directory as
The error is:
E471: Argument required
It is either related to
source or the file itself (I set file's permission to
777, but I remember sometimes it did not open the file and issued file is unreadable error as well.)
Currently, I am using one file the
.vimrc as sourcing doesn't work for me.