View Full Version : Vi Question

07-27-2004, 02:48 PM
I suppose this is off topic, but I wasn't sure of the best forum.

Does anyone know how to replace the Windows generated ^Ms in vi?

I thought it was `:%s/<control+v><shift+m>$//

After the <control+v> (^), the M goes ontop of it...

07-27-2004, 05:06 PM

Also many Unix/Linux systems have the dos2unix and unix2dos utilities that will do this for you. Type in:

man unix2dos
man dos2unix

to see if you have them available

07-28-2004, 01:59 PM
Ahh thanks, I was pushing shift+m not control.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum