.vim/
|--- autoload/
|--- backup/
|--- colors/
|--- plugged/mkdir -p ~/.vim ~/.vim/autoload ~/.vim/backup ~/.vim/colors ~/.vim/pluggedInstall your preferred vim plugin manager. In this case, we recommend vim-plug plugin manager.
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vimNow installing plugins is as easy as adding the Plug 'username/plugin-name' string you find on GitHub in between the function calls.
Finally open vim and type :PlugInstall to download and install the plugins.
Installing a colorscheme is as simple as adding a .vim file to the ~/.vim/colors/ directory.
We will add the popular color scheme molokai:
cd ~/.vim/colors
curl -o molokai.vim https://raw.githubusercontent.com/tomasr/molokai/master/colors/molokai.vimTo load the colorscheme by default when opening vim, add the below section to the Vimscript section of the .vimrc with the full path to the colorscheme
if filereadable(expand("$HOME/.vim/colors/<colorscheme>.vim"))
" Set the colorscheme
colorscheme <colorscheme>.vim
endifCopy the .vimrc.sample file that you received with this repository
cp .vimrc.sample ~/.vimrc