Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Re: multi line comments?

by CukiMnstr (Deacon)
on Jun 16, 2003 at 21:02 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2020-02-22 07:57 GMT
Find Nodes?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?

    Results (98 votes). Check out past polls.