Created
January 14, 2015 00:01
-
-
Save NicholasTD07/e13dcd1891029145bedf to your computer and use it in GitHub Desktop.
Minimum Vundle Setup with Bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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