-
Create directory ~/.vim/pack
-
Initialize git repository:
git init
-
Configure Vim to search for plugins in that directory with:
set packpath+=~/.vim/pack/
-
Add plugins to the pack directory, under
start
, oropt
orcolours
directory. -
Set remote, commit, and push.
git submodule init
git submodule update
To add plugins to be always loaded at start, put them in the
start
directory, if they are optional to be loaded manually
use opt
directory. Colour related plugins go into colours
directory.
Example of adding an autoloaded plugin:
git submodule add https://github.com/scrooloose/nerdtree plugins/start/nerdtree
git submodule update --remote --merge
git commit
git push
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