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.