From owner-freebsd-questions@FreeBSD.ORG Fri Feb 20 14:39:30 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 E859D1065673 for ; Fri, 20 Feb 2009 14:39:30 +0000 (UTC) (envelope-from Johan@double-l.nl) Received: from smtp-vbr15.xs4all.nl (smtp-vbr15.xs4all.nl [194.109.24.35]) by mx1.freebsd.org (Postfix) with ESMTP id 96ADB8FC18 for ; Fri, 20 Feb 2009 14:39:30 +0000 (UTC) (envelope-from Johan@double-l.nl) Received: from w2003s01.double-l.local (double-l.xs4all.nl [80.126.205.144]) by smtp-vbr15.xs4all.nl (8.13.8/8.13.8) with ESMTP id n1KEdSvh013803 for ; Fri, 20 Feb 2009 15:39:29 +0100 (CET) (envelope-from Johan@double-l.nl) Content-class: urn:content-classes:message MIME-Version: 1.0 X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Fri, 20 Feb 2009 15:39:27 +0100 Message-ID: <57200BF94E69E54880C9BB1AF714BBCB5DE58A@w2003s01.double-l.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: vi set comment # Thread-Index: AcmTaQgyPhCh2nOKSwiDFLnWNgNr3g== From: "Johan Hendriks" To: X-Virus-Scanned: by XS4ALL Virus Scanner Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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:39:31 -0000 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. =20 =20 Like in a config file i have the following =20 define service{ use generic-service host_name w2003hk03 service_description Explorer check_command check_nt!PROCSTATE!-d SHOWALL -l = Explorer.exe } =20 And now i want to set a # to all the 6 lines. =20 Thanks for your time Regards, Johan=20