Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: What is the easy way to comment out chunk of Perl Code

by cees (Curate)
on Nov 18, 2005 at 20:49 UTC ( #509950=note: print w/ replies, xml ) Need Help??


in reply to Re: What is the easy way to comment out chunk of Perl Code
in thread What is the easy way to comment out chunk of Perl Code

I use the BlockComment plugin for vim which I mapped to _c and _C to comment an uncomment respectively.

It works really well with the highlighting mode that vim uses. For example, go to the start of a block (function, loop, if statement) then hit Shift-V % to highlight the entire block and then _c to comment it out. Or hit Shift-V 20j to highlight the next 20 lines below the cursor, then hit _c to comment or _C to uncomment.

Oh, and it works for many different languages, not just perl.


Comment on Re^2: What is the easy way to comment out chunk of Perl Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2015-07-05 13:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls