Clone and pull the repo using --recurse-submodules
to get all packages.
If you have cloned the repo with recurse-submodules, use this command:
git submodule update --init --recursive
Replace (or merge) your ~/.vim folder with the contents of this repository.
Put the following line in ~/.vimrc:
runtime vimrc
Copied from https://shapeshed.com/vim-packages/
Here is an example of how to add a package using Vim’s native approach to packages and git submodules.
cd ~/dotfiles
git submodule init
git submodule add https://github.com/vim-airline/vim-airline.git vim/pack/shapeshed/start/vim-airline
git add .gitmodules vim/pack/shapeshed/start/vim-airline
git commit
To update packages is also just a case of updating git submodules.
git submodule update --remote --merge
git commit
Removing a package is just a case of removing the git submodule.
git submodule deinit vim/pack/shapeshed/start/vim-airline
git rm vim/pack/shapeshed/start/vim-airline
rm -Rf .git/modules/vim/pack/shapeshed/start/vim-airline
git commit