3

I have added a lot of bundles via vundle and the runtimepath seems to be cut off after 1024 characters.

I display the path via set runtimepath and it prints out a string which seems to be cut off after 1024 characters.

I'll just show the end of the runtimepath for brevity.

~/.vim/bundle/nginx-vim-syntax,~/.vim/bundle/ultisnips,~/.vim/bundle/ultisnip-snippets,~/.vim,/usr

Any help will be appreciated.

4
  • This limit is hardcoded. Do you really need that many plugins? Vim can do a lot by itself.
    – romainl
    Commented Jan 16, 2013 at 8:36
  • 2
    So the plugins don't load anymore? I'm using GVim 7.3 with Vundle and echo len(&runtimepath) gives 2770. Commented Jan 16, 2013 at 8:47
  • I managed to get the plugin to work, it was a user error on my part (not reading UltiSnips documentation carefully enough to know how to add my own snippet directory properly.) The problem seems to be outputting the runtimepath and not the actual loading from it. Commented Jan 16, 2013 at 11:37
  • @romainl I'm aware that Vim can do a lot by itself, but I like the clean separation I get with vundle. This means I have a separate bundle for simple things like nginx-vim-syntax. Very easy to change. Commented Jan 16, 2013 at 11:41

1 Answer 1

5

The following is from :help options:

Note the maximum length of an expanded option is limited.  How much depends on
the system, mostly it is something like 256 or 1024 characters.

I don't believe it's possible to change this maximum. However, if you execute :echo &rtp, the entire value is printed, so the limit seems to apply only to :set rtp.

1
  • Thanks, it works to output :echo &rtp as suggested. echo len(&runtimepath) as suggested by @Daan also works well. Commented Jan 16, 2013 at 11:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.