From 3c61f0349ff4332757eab9925f19c0ce26e596b1 Mon Sep 17 00:00:00 2001 From: Timo Sand Date: Fri, 15 Feb 2013 15:18:49 +0000 Subject: [PATCH] CHANGED: parses passed options and adds the corresponding item to dictionary --- autoload/vundle/config.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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