Browse Source

Merge 58748ea0cb into c3ec879694

pull/280/merge
Timo Sand 12 years ago
parent
commit
d86bcda8f7
3 changed files with 20 additions and 0 deletions
  1. +3
    -0
      README.md
  2. +4
    -0
      autoload/vundle.vim
  3. +13
    -0
      autoload/vundle/config.vim

+ 3
- 0
README.md View File

@ -43,6 +43,9 @@
Bundle 'file:///Users/gmarik/path/to/plugin'
" ...
" Installs bundle only if vim version matches
BundleIf '703.584', 'Valloric/YouCompleteMe'
filetype plugin indent on " required!
"
" Brief help


+ 4
- 0
autoload/vundle.vim View File

@ -7,6 +7,10 @@
com! -nargs=+ Bundle
\ call vundle#config#bundle(<args>)
com! -nargs=+ BundleIf
\ call vundle#config#bundle_if(<args>)
com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleInstall
\ call vundle#installer#new('!' == '<bang>', <q-args>)


+ 13
- 0
autoload/vundle/config.vim View File

@ -6,6 +6,19 @@ func! vundle#config#bundle(arg, ...)
return bundle
endf
func! vundle#config#bundle_if(arg, ...)
let versions = split(a:arg, '\.')
if len(versions) == 2
if v:version > versions[0] || v:version == versions[0] && has(join(['patch',versions[1]],''))
call vundle#config#bundle(join(a:000))
endif
else
if v:version >= versions[0]
call vundle#config#bundle(join(a:000))
endif
endif
endf
func! vundle#config#init()
if !exists('g:bundles') | let g:bundles = [] | endif
call s:rtp_rm_a()


Loading…
Cancel
Save