Edit file on Windows, shows ^M on each line on Linux
Jeff Schroeder
jeff at zingstudios.com
Fri Apr 13 10:20:25 MDT 2007
> :%s/(ctrl)M//g
>
> That'll fix it.
Actually, I think you'll have to type
:%s/(control-V)(control-M)//
The control-V will "escape" the next character. If you don't type it,
vi will interpret the control-M as an [enter] and run your command
immediately. Also, you don't technically need the "g" at the end
because there will only be one control-M per line.
$0.02,
Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://plug.org/pipermail/plug/attachments/20070413/bbedb9f8/attachment.bin
More information about the PLUG
mailing list