From 48f4524ed5c5c4feee736670fdc3ebe1a274ae49 Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Sun, 30 Dec 2012 14:20:07 +0800 Subject: [PATCH] Improve display of rtp --- autoload/vundle/installer.vim | 2 +- autoload/vundle/scripts.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index e616c5d..cb62880 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -102,7 +102,7 @@ endf func! vundle#installer#install(bang, name) abort if !isdirectory(g:bundle_dir) | call mkdir(g:bundle_dir, 'p') | endif - let arg_list = split(a:name, ',') + let arg_list = split(a:name, ',\s*') let rtp = len(arg_list) > 1 ? arg_list[1] : '' let rtp = substitute(rtp, "['".'"]\+','','g') let name = arg_list[0] diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index e5a4480..2584bd9 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -77,7 +77,7 @@ endf func! vundle#scripts#bundle_names(names) return map(copy(a:names), 'empty(v:val.rtp) ? '. \ 'printf("Bundle ' ."'%s'".'", v:val.name) : '. - \ 'printf("Bundle ' ."'%s','%s'".'", v:val.name, v:val.rtp)') + \ 'printf("Bundle ' ."'%s', '%s'".'", v:val.name, v:val.rtp)') endf func! vundle#scripts#view(title, headers, results)