From owner-freebsd-questions@FreeBSD.ORG Fri Feb 20 14:56:09 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2E5C1065675 for ; Fri, 20 Feb 2009 14:56:09 +0000 (UTC) (envelope-from dave.list@pixelhammer.com) Received: from smtp2.tls.net (smtp2.tls.net [65.124.104.105]) by mx1.freebsd.org (Postfix) with ESMTP id 65A198FC16 for ; Fri, 20 Feb 2009 14:56:09 +0000 (UTC) (envelope-from dave.list@pixelhammer.com) Received: (qmail 30949 invoked from network); 20 Feb 2009 14:56:08 -0000 Received: by simscan 1.2.3 ppid: 30932, pid: 30946, t: 0.1477s scanners: attach: 1.2.3 spam: 3.2.1 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on smtp-2.tls.net X-Spam-Level: X-Spam-Status: No, score=0.2 required=10.0 tests=ALL_TRUSTED,TVD_RCVD_IP autolearn=disabled version=3.2.1 Received: from 64-184-8-148.bb.hrtc.net (HELO ?192.168.1.46?) (ldg@tls.net@64.184.8.148) by ssl-smtp2.tls.net with ESMTPA; 20 Feb 2009 14:56:08 -0000 Message-ID: <499EC480.9020201@pixelhammer.com> Date: Fri, 20 Feb 2009 09:56:00 -0500 From: DAve User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <57200BF94E69E54880C9BB1AF714BBCB5DE58A@w2003s01.double-l.local> In-Reply-To: <57200BF94E69E54880C9BB1AF714BBCB5DE58A@w2003s01.double-l.local> Content-Type: text/plain; charset=windows-1250; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: vi set comment # X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2009 14:56:10 -0000 Johan Hendriks wrote: > How can i in vi set a # on multiple Lines to comment out some text. > > I know it must be a simple thing but i can not seem to get it right. > > > > > > Like in a config file i have the following > > > > define service{ > > use generic-service > > host_name w2003hk03 > > service_description Explorer > > check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe > > } > > > > And now i want to set a # to all the 6 lines. > http://lmgtfy.com/?q=comment+multiple+lines+in+vi Don't take this personal. I've been dying to use that link for over two weeks. Normally my tech support staff provides me ample opportunities, but they have been quiet lately. ;^) DAve -- "Posterity, you will know how much it cost the present generation to preserve your freedom. I hope you will make good use of it. If you do not, I shall repent in heaven that ever I took half the pains to preserve it." John Quincy Adams http://appleseedinfo.org