diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index 55c7d7d..8131f34 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -33,11 +33,13 @@ endf func! s:parse_options(opts) " TODO: improve this if len(a:opts) != 1 | return {} | endif - if type(a:opts[0]) == type({}) return a:opts[0] else - return {'rev': a:opts[0]} + let foo = split(a:opts[0], ':') + let type = foo[0] + let name = foo[1] + return {type : name} endif endf