I am currently using the technique described in these two posts:
with some modifications to avoid having this README.md pullute my home directory. The instructions here are for me to remember what to do to clone this setup.
To install the dotfiles you have to execute the following lines:
alias cfg='git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
git --no-replace-objects clone --bare [email protected]:tenllado/dotfiles.git $HOME/.cfg
cfg config --local status.showUntrackedFiles no
cfg checkout -f
Now you can config the $HOME/.cfg git report to not checkout REAMDE.md, so that this README.md file does not pollute your home. We do that using sparse-checkout:
cfg config core.sparseCheckout true
echo -e "/*\n!README.md" >> ~$HOME/.cfg/info/sparse-checkout
rm $HOME/README.md
To complete the setup, we have to add the minpac plugin for vim:
mkdir -p ~/.config/vim/pack/minpack/opt
cd ~/.config/vim/pack/minpack/opt
git clone [email protected]:k-takata/minpac.git
cd -
vim +PackUpdateAndQuit