[Tutor] Commenting a big block of code
Sean 'Shaleh' Perry
shalehperry@home.com
Wed, 19 Sep 2001 08:18:42 -0700 (PDT)
On 19-Sep-2001 Girish Gajwani wrote:
> Hi All,
>
> I wish to comment out a big block of code. It is rather
> painful to go and insert a "#" in front of each line of
> code.
>
> Is there any "Block Comment" feature or perhaps someone
> would just send me a VIM macro which I can use to select a
> block of code in visual mode & then use some key mapped to
> the macro & within a blink of an eye find all the lines
> commented out.
>
> For now, I am just cutting out these lines & putting them in
> a temporary area from where I retrieve them as necessary.
>
if you could grab the excellent O'reilly vi book you would learn all of this
and more. learning your editor can make you marvelously more productive,
regardless of the editor.