I'm a new user of Ubuntu, and I'd like a little bit of help with plugins. According to this website, I installed vim-plug
with curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
command. I have also created the directory ~/.vim/plugged
as suggested.
So far I know I have to install my plugins inside (in ~/.vimrc
file):
call plug#begin('~/.vim/plugged')
call plug#end()
It is indicated I have to make the content of "Download plug.vim" available inside the 'autoload' directory.
Question 1: What is the 'autoload' directory here?
In fact, I want to install vim-plug
to install several plugins like nerdtree
. The way I understand the procedure is to go over the website https://github.com/scrooloose/nerdtree, and take only the part scrooloose/nerdtree
to install the plugin :
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree'
call plug#end()
then execute :PlugInstall
.
Question 2: Could anyone be able to tell me where do I have an issue (if there are)?