Browse Source

Reorder &rtp to have default values in sensible places

Use the default value of &rtp to be operating system independant.  Move
the /after directories at the end and the other default directories at
the beginning of &rtp.

Known issues
* If a user removes one of the default directories from &rtp it will be
  added again.
* If a user added some other directory manually it might end
  up in an unintended place.
pull/300/head
Lucas Hoffmann 13 years ago
parent
commit
f24ec5086d
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      autoload/vundle/config.vim

+ 3
- 2
autoload/vundle/config.vim View File

@ -76,7 +76,7 @@ func! s:rtp_rm_a()
endf
func! s:rtp_add_a()
" Try to move the default directories in sensible places. By resetting the
" Try to move the default directories in sensible places. By resetting the
" option, we are using the correct values no matter on which OS we are.
let old_rtp = &rtp
set rtp&
@ -85,7 +85,8 @@ func! s:rtp_add_a()
let part_one = default_rtp[: middle - 1]
call reverse(part_one)
let part_two = default_rtp[middle :]
" Reset &rtp to the old value
" Reset &rtp to the old value, if we don't do this we might lose changes
" made by the user.
let &rtp = old_rtp
" add the vundles
let paths = map(copy(g:bundles), 'v:val.rtpath')


Loading…
Cancel
Save