From owner-freebsd-questions@FreeBSD.ORG Sun Jan 25 15:35:36 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0CD4116A4CF for ; Sun, 25 Jan 2004 15:35:36 -0800 (PST) Received: from smtp.aaisp.net.uk (painless.aaisp.net.uk [217.169.20.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0C3043D5C for ; Sun, 25 Jan 2004 15:35:27 -0800 (PST) (envelope-from dom@DeVitto.com) Received: from [217.169.21.114] (helo=dom.devitto.com) by smtp.aaisp.net.uk with esmtp (Exim 4.22) id 1Aktmn-0007u2-Rz for freebsd-questions@freebsd.org; Sun, 25 Jan 2004 23:35:25 +0000 Received: from dom ([217.169.21.114]) by dom.devitto.com; Sun, 25 Jan 2004 21:37:50 +0000 From: "Dom De Vitto" To: "'marlon corleone'" , , Date: Sun, 25 Jan 2004 21:37:40 -0000 Organization: Secure Technologies Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: Thread-Index: AcPjK3wApR+jgkmBT627CdL6yUgaAwAX3pHg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-Id: Subject: RE: how to get rid of ^M character using vi X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jan 2004 23:35:36 -0000 Try: :1,$sX^V^MX?? Where '^' means 'control', e.g. ^V is control-V, ^M is control-M. Control-V can be used to enter any non-printable ascii character. Easy when you know. Dom PS. the same magic works outside of VI, with sed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Dom De Vitto Tel. 07855 805 271 http://www.devitto.com mailto:dom@devitto.com - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -----Original Message----- From: owner-misc@openbsd.org [mailto:owner-misc@openbsd.org] On Behalf Of marlon corleone Sent: Sunday, January 25, 2004 9:43 AM To: freebsd-questions@freebsd.org; misc@openbsd.org Subject: how to get rid of ^M character using vi how do i get rid of this annoying character ^M using vi, in pico i used the arguments '-w' but what about in vi? cheers _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus