Commenting out multiple lines ?

Yong Lu lyongu at
Sat May 19 00:09:23 EDT 2001

Courageous <jkraska1 at> writes:

> If the triple quote comment technique doesn't work for you,
> you might look up the boxes program on the web:
> I use this in conjunction with vim; you select an area, hit a key
> sequence, and the entire area either comments or uncomments
> python-style.
> C//

In vim, you can just select the rectangular region with Ctrl-v, then
type "I#<ESC>".  This will insert # in each line at the same column.
Very convenient.


More information about the Python-list mailing list