vim config

24 Mar 2012

I’ve been working on a project which has a really nice set of vim plugins with a decent configuration. I’ve been trying to send in a few patches but it was a bit of a pain to use mine but keep it updated with the main repo. A bit of searching gave me a nice setup.

This clones my fork and also adds the parent as the upstream remote.

cd ~
git clone ~/.vim
cd ~/.vim
git submodule update --init
ln -s ~/.vim/vimrc ~/.vimrc
git remote add upstream

Now if you add this to your .gitconfig you can do an easy git pu to pull in changes from both branches.

  pu = !"git fetch origin -v; git fetch upstream -v; git merge upstream/master"