Browse Source

Added conditional for only vim main version

pull/279/head
Timo Sand 13 years ago
parent
commit
f63033c85e
1 changed files with 12 additions and 4 deletions
  1. +12
    -4
      autoload/vundle/config.vim

+ 12
- 4
autoload/vundle/config.vim View File

@ -8,10 +8,18 @@ endf
func! vundle#config#bundle_if(arg, ...)
let versions = split(a:arg, '\.')
if v:version == versions[0] && has(join(['patch',versions[1]],''))
echom 'installing bundle'
echom join(a:000)
call vundle#config#bundle(join(a:000))
if len(versions) == 2
if v:version == versions[0] && has(join(['patch',versions[1]],''))
echom 'installing bundle'
echom join(a:000)
call vundle#config#bundle(join(a:000))
endif
else
if v:version == versions[0]
echom 'installing bundle'
echom join(a:000)
call vundle#config#bundle(join(a:000))
endif
endif
endf


Loading…
Cancel
Save