From: John P. Looney (john at domain antefacto.com)
Date: Wed 03 Oct 2001 - 14:20:47 IST
On Wed, Oct 03, 2001 at 02:16:45PM +0100, James Cooper mentioned:
> Hi all,
> I'm editing a C source file in kwrite. Everything looks ok but when I open
> the same file with 'view' there are a load of ^Ms where newlines should
> be. I'm using KDE 2.1.2. How does I be fixing this problem?
Type;
:set ft=dos
in a vim window, and when you save the file, it'll save it as a dos
file. Or, you can set ft=unix, and save the file, and it'll strip the ^M's
for you.
-- _______________________________________ John Looney Chief Scientist a n t e f a c t o t: +353 1 8586004 www.antefacto.com f: +353 1 8586014
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:29 GMT