vi editor related question

Radek Kozlowski radek at raadradd.com
Fri Aug 27 20:46:06 PDT 2004


On Fri, Aug 27, 2004 at 10:52:04PM -0400, Mike Jeays wrote:
> If you are using plain vi, you can get rid of the unwanted characters
> with the command
> :1,$s/ctrl-v-m//g where "ctrl-v-m' means hold down the Ctrl key while
> you press v followed by m.  You will see them magically disappear.

Another way to do this: %s/\r//

(% - act on all lines)

-Radek


More information about the freebsd-questions mailing list