From owner-freebsd-questions Wed Nov 1 11:48:34 2000 Delivered-To: freebsd-questions@freebsd.org Received: from jxnemail01.skytel.com (jxnemail01.skytel.com [204.153.83.130]) by hub.freebsd.org (Postfix) with ESMTP id 634C537B4C5 for ; Wed, 1 Nov 2000 11:48:31 -0800 (PST) From: <8773836928@skytel.com> date: Wed, 01 Nov 2000 13:47:27 CST Message-Id: <200011014727.589586540@skytel.com> Content-Type: text/plain; charset=us-ascii To: freebsd-questions@freebsd.org Subject: vi question Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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