Code Monkey home page Code Monkey logo

Comments (5)

WolfgangMehner avatar WolfgangMehner commented on June 12, 2024

I know about this issue, and I know that the current situation is undesirable. I already dealt with it for some of the other projects, e.g. WolfgangMehner/bash-support@e1969c3

I'll get back to you with a solution where all the F9 mappings are removed and you can define your own ones for these features. This will also ensure forward compatibility.

You will then have to define mappings for these features yourself, using your ftplugin:

   Shift-F1   read perldoc  (for the word under the cursor)
         F9   start a debugger
     Alt-F9   run syntax check
    Ctrl-F9   run script
   Shift-F9   set command line arguments (buffer related)

You will find examples in perl-support/rc/*.vim .

from perl-support.

WolfgangMehner avatar WolfgangMehner commented on June 12, 2024

Since I do not know Perl well, I could need your help with one question:

Which of these five features listed above should have maps for the POD filetype? I mainly ask so I can provide sensible examples in perl-support/rc/pod.vim

from perl-support.

mowgli avatar mowgli commented on June 12, 2024

The only I could think about is the syntax check. pod is only documentation. There should be nothing to run.

from perl-support.

WolfgangMehner avatar WolfgangMehner commented on June 12, 2024

I just pushed e14a382 .

As I said, it removes all F1 and F9 maps, and adds ex-commands to recreate them. Check out the example map definitions in perl-support/rc/perl.vim, and add them to your filetype plug-ins as needed.

Bonus features:

You can give arguments to the script if you use :Perl:

:Perl aa bb cc

You can also give arguments when debugging a script:

:PerlDebug x y z

You can search for help by adding a topic to the :PerlDoc command:

:PerlDoc print

from perl-support.

mowgli avatar mowgli commented on June 12, 2024

Works well, thanks.

from perl-support.

Related Issues (5)

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.