Commenting out multiple lines ?
Yong Lu
lyongu at ailab.pku.edu.cn
Sat May 19 00:09:23 EDT 2001
Courageous <jkraska1 at san.rr.com> writes:
> If the triple quote comment technique doesn't work for you,
> you might look up the boxes program on the web:
>
> http://www6.informatik.uni-erlangen.de/~tsjensen/software/boxes/
>
> 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.
Yong
More information about the Python-list
mailing list