Skip to content

Instantly share code, notes, and snippets.

@NicholasTD07
Created January 14, 2015 00:01
Show Gist options
  • Save NicholasTD07/e13dcd1891029145bedf to your computer and use it in GitHub Desktop.
Save NicholasTD07/e13dcd1891029145bedf to your computer and use it in GitHub Desktop.
Minimum Vundle Setup with Bootstrap
" To test this file in isolation,
" put it in a folder other then ~/,
" then run 'vim -u vundle-with-bootstrap.vim'.
set nocompatible
filetype off
" modified bootstrap, originally by John Whitley
" https://github.com/jwhitley/vimrc/blob/master/.vim/bootstrap/bundles.vim
let s:current_folder = expand("<sfile>:h")
" returns path inside .vim folder relative to this file
function! s:RelativePathWithinDotVim(path)
return s:current_folder."/.vim/".a:path
endfunction
" Initialize Vundle if haven't yet
let s:bundle_path = s:RelativePathWithinDotVim("bundle")
let s:vundle_path = s:RelativePathWithinDotVim("bundle/Vundle.vim")
if !isdirectory(s:vundle_path."/.git")
silent exec "!mkdir -p ".s:bundle_path
silent exec "!git clone --depth=1 https://github.com/gmarik/Vundle.vim.git ".s:vundle_path
let s:vundle_initialized=1
endif
exec "set rtp+=".s:vundle_path
call vundle#begin(s:bundle_path)
" let Vundle manage itself
Plugin 'gmarik/Vundle.vim'
call vundle#end()
filetype plugin indent on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment