Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: multi line comments?

by CukiMnstr (Deacon)
on Jun 16, 2003 at 21:02 UTC ( [id://266300]=note: print w/replies, xml ) Need Help??


in reply to Re: multi line comments?
in thread multi line comments?

When editing perl code in vim, if you comment a line the following lines are commented, so you kind of get multi-line comments for free ;)
If you want to comment a block of code, there are many plugins to do this, for example this one.

hope this helps,

update: first paragraph added, and rephrased second one.

Replies are listed 'Best First'.
Re^3: multi line comments?
by Aristotle (Chancellor) on Jun 17, 2003 at 05:15 UTC
    Of course besides plugins, you can use visual selection mode (:help visual) which is esp useful with the { and } keys to move paragraph-wise. You can either use I to insert the hashes at the front or something like :'<,'>s/^/# (the '<,'> is automatically added as soon as you type the double colon). Visual block selection mode (:help block) makes getting rid of the hashes a breeze - move cursor to top hash, Ctrl-v, } to jump to the end of the paragraph, adjust width of block if necessary, d.

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-04-23 18:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found