From 2bcea61f48696be1a43c33006f52a076726487a1 Mon Sep 17 00:00:00 2001 From: John Whitley Date: Fri, 24 Feb 2012 10:48:23 -0800 Subject: [PATCH] Add bootstrap code to .vimrc example --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index d81e042..9de7005 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,12 @@ set nocompatible " be iMproved filetype off " required! + if !isdirectory(expand("~/.vim/bundle/vundle")) + !mkdir -p ~/.vim/bundle + !git clone git://github.com/gmarik/vundle.git ~/.vim/bundle/vundle + let s:bootstrap=1 + endif + set rtp+=~/.vim/bundle/vundle/ call vundle#rc() @@ -41,6 +47,11 @@ Bundle 'git://git.wincent.com/command-t.git' " ... + if exists("s:bootstrap") && s:bootstrap + unlet s:bootstrap + BundleInstall + endif + filetype plugin indent on " required! " " Brief help