glasswalk3r has asked for the wisdom of the Perl Monks concerning the following question:
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,
Update: for those who are struggling to get this work, I added a tip as an issue into the perlsupport Github here.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Configuring Vim to make peace with Perlbrew
by wjw (Priest) on Apr 15, 2014 at 10:18 UTC | |
by glasswalk3r (Friar) on Aug 28, 2014 at 17:26 UTC |