Installation on a new machine:
git clone https://github.com/SimonAB/dotvim.git ~/.vim
Create symlinks:
ln -s ~/dotfiles/vimrc ~/.vimrc
ln -s ~/dotfiles/gvimrc ~/.gvimrc
Switch to the ~/.vim
directory, and fetch submodules:
cd ~/.vim
git submodule update --init
To install new plugins:
git submodule add <github url> bundle/<name>
To commit & upload changes to git:
git add .
git commit -m "<description>"
git push
To remove a submodule:
- Delete the relevant section from the .gitmodules file.
- Delete the relevant section from .git/config.
- Run git rm --cached path_to_submodule (no trailing slash).
- Commit and delete the now untracked submodule files.
Occassionally, the bundles may need updating. To do this:
git submodule foreach git pull origin master