-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perl-Support: Improved setup to work with Perlbrew #11
Comments
Although this configuration solves the issue regarding the Perl interpreter and
Since I'm using Perl 5.16, this configuration is wrong. I doubled checked the
And the dialog box showed the correct configuration. Reviewing the perl-support.vim plugin, I found that the Perl interpreter path being used in hard coded to "/usr/bin/perl" but that does not help with Perlbrew. I added the following (line number included):
And it seems to be working correctly now when checking syntax, |
You can actually set the Perl executable in your .vimrc using "g:Perl_Perl", see:
|
For some reason that help is not available:
I tried on a CentOS 7, with Vim 7.4.160. |
The help topic should still be there. But I renamed the setting to Try using the map |
This still works: ubuntu 17.10 |
This is the default as of version 5.4.1, 132828c : Hopefully this will resolve the perlbrew problems and always use the version you use in the shell, by actually choosing the correct executable from |
Tried that on Ubuntu 18.04, latest release of perl-support. |
OK, good debugging there. Unfortunatly it seems like the problem is not with Perl-Support itself, so it's harder for me to help you. Perl-Support depends on being able to run Could you compare the output of Vim vs. gVim when you run this on the Vim command line: Does it make a difference if you start gVim from a terminal or the desktop (using the Unity-App-Search-And-Starter-Thingy, whatever that's called)? |
Sorry for taking so long to answer. |
This is actually a suggestion for improvement.
While using Perlbrew, it would be much better to have the following code in the .vimrc:
This will allow the plugin to identify the correct version of perl as defined by the Perlbrew configuration and, of course, correct identify issues and a syntax check is carried, since different Perlbrew instances may have different Perl modules installed.
The text was updated successfully, but these errors were encountered: