...

View Full Version : Vi Question



bnovc
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...

Spookster
07-27-2004, 05:06 PM
http://opendeveloper.org/book/print/2

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

bnovc
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