Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: perlcritic speedup

by jthalhammer (Friar)
on Jan 25, 2012 at 09:25 UTC ( #949856=note: print w/ replies, xml ) Need Help??


in reply to Re^2: perlcritic speedup
in thread perlcritic speedup

I don't think it has to be that complicated

Do you know about perl-support for Vim? Also, I think flymake looks promising for you.

Jeffrey Thalhammer
Imaginative Software Systems


Comment on Re^3: perlcritic speedup
Re^4: perlcritic speedup
by powerman (Friar) on Jan 25, 2012 at 09:53 UTC
    Yeah, I know about them. But I write code in many languages, not just in Perl, so I prefer to use plugins which behave in same way for any language (like syntastic, snipmate, viewdoc, tcomment, etc.) instead of language-specific plugins like perl-support.

      Well, flymake looks like exactly what you need:

      Flymake is a Vim plugin to perform on-the-fly syntax checking for the files being edited by using the external syntax checking tool (usually a compiler). It also highlights erroneous lines and displays associated error and warning messages. This plugin is a port of 'flymake-mode' for Emacs.

      Just substitute the world "perlcritic" wherever it says "compiler", and BAM! The trick is configuring the output of perlcritic to look like the output of a compiler. The formatting capabilities of the --verbose option are designed precisely for this situation.

      I know that people have successfully used Emacs' flymake-mode with perlcritic. So I gotta believe that you can make it work with vim-flymake. Let me know how it works out.

      Jeffrey Thalhammer
      Imaginative Software Systems

        I know I can use perlcritic as "compiler" - that's how I use it with syntastic. :)

        As for flymake, I don't think it's doing anything interesting. If you check the code, you'll see it start on file save, just like all other syntax checkers for Vim, and just run external checker using usual blocking system(), not in background. So, flymake is just basic version of much more advanced syntastic plugin.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://949856]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2014-09-17 07:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (62 votes), past polls