[UCLA-LUG] Getting rid of "^M"s in vi

Roberto Congiu rcongiu@pacbell.net
Fri, 7 Jul 2000 17:15:15 -0700


On Fri, Jul 07, 2000 at 04:38:03PM -0700, David Fallon wrote:
> (if you're using vim, which you probably are if it's linux...) - ^M is a
> unix -> dos file format problem (unix and dos/windows treat carridge returns
> differently.)
> 
You can use
:%! tr -d '\015'
to get rid of them.