Code Monkey home page Code Monkey logo

Comments (8)

WolfgangMehner avatar WolfgangMehner commented on September 20, 2024

Do you see the "Perl" menu (in gVim)? What is the output of this command, on the Vim command-line:

:call Perl_Settings(2)

Is there a file ~/.vim/bundle/perl-support/plugin/perl-support.vim ?

from vim-plugins.

dileepkr avatar dileepkr commented on September 20, 2024

I do not see the Perl menu when I open a *.pl file, when I open *.pl I get the above mentioned error.

when I did :call Perl_Settings(2) I got the below message
E117: Unknown function: Perl_Settings

I do see the perl-support.vim at ~/.vim/bundle/perl-support/plugin/perl-support.vim

I am using vim 7.4 to do all of the above.

from vim-plugins.

WolfgangMehner avatar WolfgangMehner commented on September 20, 2024

So Perl-Support is there but is not loaded properly, which is a bit puzzling. Could you please run to following command:

:scriptnames

It lists all plug-ins which were loaded by Vim. Does the list contain .../plugin/perl-support.vim ?

Also, please run this, it might help me understand what is going on:

:echo g:Perl_PluginVersion

from vim-plugins.

dileepkr avatar dileepkr commented on September 20, 2024

:scriptnames just shows following ones for perl support.
~/.vim/plugged/perl-support/ftdetect/template.vim
~/.vim/plugged/perl-support/ftplugin/perl.vim

:echo g:Perl_PluginVersion gave:
E121: Undefined variable: g:Perl_PluginVersion
E15: Invalid expression: g:Perl_PluginVersion

Thanks for the replies :)

from vim-plugins.

dileepkr avatar dileepkr commented on September 20, 2024

sorry, I do see these also (after doing :PlugUpdate everytime I open gvim):
68: ~/.vim/plugged/perl-support/plugin/perl-support.vim
69: ~/.vim/plugged/perl-support/autoload/mmtemplates/config.vim
70: ~/.vim/plugged/perl-support/autoload/mmtoolbox/tools.vim
71: ~/.vim/plugged/perl-support/autoload/mmtoolbox/make.vim

from vim-plugins.

dileepkr avatar dileepkr commented on September 20, 2024

oh this problem seems wierd..
I used vim plug to install perl-support again and when I open a perl script in gvim the problem exists, but

  1. I run :PlugUpdate - updates all plugins
  2. do a vsp on a perl script, then PERL support comes back and WORKS .

But when I open *.pl directly from terminal in gvim perl, I still get the same error.

from vim-plugins.

dileepkr avatar dileepkr commented on September 20, 2024

Finally found a solution for the issue.

I had to keep my vim plug plugins in .vimrc instead of .gvimrc . Once I did that the issue got solved.

Thank you for the help.

from vim-plugins.

WolfgangMehner avatar WolfgangMehner commented on September 20, 2024

Nice to hear that. Happy Vim'ing.

from vim-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.