On Sunday 25 January 2004 01:43 am, marlon corleone wrote:
> how do i get rid of this annoying character ^M using vi, in pico i
> used the arguments '-w'
> but what about in vi?
>

starting on the 1st line type
:.,$s/<ctrl>v<ctrl>m//

The .,$ tells it to process from the current line to the last one. Then, 
you have to hold the control key down when you press the v and then the 
m. This enters a ^M and the // deletes the occurance.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to