Skip to content

set rtp+=.... command length limitation: incorrect plugin paths initialization #482

@hoopoepg

Description

@hoopoepg

hi

something about me: windows8x64, vim7.4, 32bit

i found strange issue in vundle processing: one of the path in rtp is truncated after vim loaded. after investigation i found that vim command 'set rtp+=...' has limitation by length & in case if somebody uses a lot of plugins loaded by vundle - vundle may initialize path to plugins incorrectly.

fix: use loop to add paths to rtp instead of adding paths as single command

vimfiles\bundle\Vundle.vim\autoload\vundle\config.vim: 195

func! s:rtp_add_a()
  let paths = map(copy(g:bundles), 'v:val.rtpath')
  for item in paths
    exec 'set rtp^='.fnameescape(item)
  endfor
  for item in paths
    exec 'set rtp+='.fnameescape(item.'/after')
  endfor
endf

thank you

--Sergey

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions