From 063f68b26eed67fd84cd21290e88c974a4df3b7d Mon Sep 17 00:00:00 2001 From: gmarik Date: Fri, 3 Jun 2011 18:52:04 -0500 Subject: [PATCH] expand path --- autoload/vundle/config.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index 577a6aa..0e32183 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -74,12 +74,16 @@ func! s:rtp_add(dir) abort exec 'set rtp+='.fnameescape(expand(a:dir.'/after')) endf +func! s:expand_path(path) abort + return simplify(expand(a:path)) +endf + let s:bundle = {} func! s:bundle.path() - return expand(g:bundle_dir.'/'.self.name) + return s:expand_path(g:bundle_dir.'/'.self.name) endf func! s:bundle.rtpath() - return has_key(self, 'rtp') ? expand(self.path().'/'.self.rtp) : self.path() + return has_key(self, 'rtp') ? s:expand_path(self.path().'/'.self.rtp) : self.path() endf