Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jan 2004 21:37:40 -0000
From:      "Dom De Vitto" <dom@DeVitto.com>
To:        "'marlon corleone'" <chkrootkit@hotmail.com>, <freebsd-questions@freebsd.org>, <misc@openbsd.org>
Subject:   RE: how to get rid of ^M character using vi
Message-ID:  <E1Aktmn-0007u2-Rz@smtp.aaisp.net.uk>
In-Reply-To: <BAY13-F62bUpm0RnzXo00012ad5@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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







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