Skip to content

Instantly share code, notes, and snippets.

@geopet
Created February 24, 2014 15:33
Show Gist options
  • Save geopet/9190532 to your computer and use it in GitHub Desktop.
Save geopet/9190532 to your computer and use it in GitHub Desktop.
Vim config script: Allows for a complete reinstall of my dot vim files. This script *will* delete whatever was in your .vim, .vimrc and your .gvimrc. So please back those files up as needed before running this script!
#!/usr/bin/env bash
cd
rm -rf ~/.vim
rm -rf ~/.vimrc
rm -rf ~/.gvimrc
git clone git@github.com:geopet/dotvim.git ~/.vim
ln -s ~/.vim/vimrc ~/.vimrc
ln -s ~/.vim/gvimrc ~/.gvimrc
cd ~/.vim
mkdir -p tmp/swap
git submodule update --init
git submodule foreach git pull origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment