Hello fellows monks,

I've being using Vim with the perlsupport script successfully for years. A couple of months ago I started using Perlbrew (which is indeed such great tool) but I'm not being able to make Vim understand that I'm using a Perlbrew perl instead of the system one.

I added the following piece of code to my .vimrc file:

" Enable perlbrew path if has("gui_running") && filereadable($HOME . "/perl5/perlbrew/etc/bas +hrc") let $PATH=system("source " . $HOME . "/perl5/perlbrew/etc/bashrc; e +cho -n $PATH") endif

And while it does the trick with the path to the current select perl, it does not understands the search path of the installed modules within the select perl interpreter.

I tried adding a:

let $PERL5LIB=system("perl -E 'say join(q{:},@INC)'")

But then I got error messages while syntax checking my code about incorrect version of Dyna::Loader.

Is there any way to get everything running as expected?

I'm using Perlbrew with perl v5.16.3 as default.

Thanks,

Alceu Rodrigues de Freitas Junior
---------------------------------
"You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill

Update: for those who are struggling to get this work, I added a tip as an issue into the perlsupport Github here.


In reply to Configuring Vim to make peace with Perlbrew by glasswalk3r

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.