If you're going to use this repo for your own vim environment then this is probably the section you want.
- Optionally, save your existing .vimrc:
cp .vimrc{,-save} mkdir .vimcd .vimgit initgit remote add origin https://github.com/mattpep/vimrc.gitgit pull origin maingit submodule initgit submodule updatecd ..ln -sf .vim/vimrc .vimrc- Optionally add your previous saved config:
cat ~/.vimrc-save >> ~/.vimrc
Do this:
git submodule update --init to update all of them, and add any new ones since your last update
Because I use git submodules, you might run into a situation where you need to update one of the submodules which I haven't yet myself updated.
git submodule foreach git pullto update all of themcd bundle/pluginname && git pull origin masterto update one of them
These are the steps I used to create the initial setup of a git-managed vim config. You can use these if you want to track your own vim config but don't want to use mine as a starting point.
cd .vimmv ../.vimrc vimrcgit initgit add *git commit -m "First commit"- `git remote add origin git@github.com:mattpep/vimrc.git
git push origin mainln -s vimrc ../.vimrc