Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Nov 2000 13:47:27 CST
From:      <8773836928@skytel.com>
To:        freebsd-questions@freebsd.org
Subject:   vi question
Message-ID:  <200011014727.589586540@skytel.com>

next in thread | raw e-mail | index | archive | help
Hello,

I have been editing some 
Perl scripts in vi recently,
and I find it very annoying
that Perl cannot comment
blocks of code, only lines.

I have been reading the docs in vi, but I can't quite figure out how to do a substitute command that will, say, prepend a # to the next n lines, and later remove the # ( well, the second one I could always use :s and replace the first # with nothing for the next n lines. But the first one is still a mystery to me ).

Any insight would be greatly appreciated.

Thanks!

P.S. Please cc: me, as I am not subscribed to the list with this account. Thanks again.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011014727.589586540>