From owner-freebsd-questions@FreeBSD.ORG Sat Aug 28 07:42:41 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6B7716A4CE for ; Sat, 28 Aug 2004 07:42:41 +0000 (GMT) Received: from adsl-68-76-19-75.dsl.klmzmi.ameritech.net (adsl-68-76-19-75.dsl.klmzmi.ameritech.net [68.76.19.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0623343D6D for ; Sat, 28 Aug 2004 07:42:41 +0000 (GMT) (envelope-from luke@foolishgames.com) Received: from [192.168.2.49] (66.227.161.255.kzo.mi.chartermi.net [66.227.161.255]) (authenticated bits=0)ESMTP id i7S7jife003265; Sat, 28 Aug 2004 03:45:45 -0400 (EDT) (envelope-from luke@foolishgames.com) X-Authentication-Warning: adsl-68-76-19-75.dsl.klmzmi.ameritech.net: Host 66.227.161.255.kzo.mi.chartermi.net [66.227.161.255] claimed to be [192.168.2.49] Message-Id: X-Habeas-Swe-6: email in exchange for a license for this Habeas X-Habeas-Swe-3: like Habeas SWE (tm) Date: Sat, 28 Aug 2004 03:42:30 -0400 X-Habeas-Swe-8: Message (HCM) and not spam. Please report use of this From: Lucas Holt X-Habeas-Swe-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-Swe-2: brightly anticipated In-Reply-To: <34b425c50408271652314776b1@mail.gmail.com> References: <34b425c50408271652314776b1@mail.gmail.com> To: Soo-Hyun Choi X-Habeas-Swe-7: warrant mark warrants that this is a Habeas Compliant Mime-Version: 1.0 (Apple Message framework v619) X-Habeas-Swe-4: Copyright 2002 Habeas (tm) Content-Type: text/plain; charset=US-ASCII; format=flowed X-Habeas-Swe-1: winter into spring Content-Transfer-Encoding: 7bit X-Habeas-Swe-9: mark in spam to . X-Mailer: Apple Mail (2.619) X-Virus-Scanned: clamd / ClamAV version 0.75.1, clamav-milter version 0.75c on adsl-68-76-19-75.dsl.klmzmi.amerclamd / ClamAV version 0.75.1, clamav-milter version 0.75c on (¦¹¬¿M X-Virus-Status: Clean cc: freebsd-questions@freebsd.org Subject: Re: vi editor related question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2004 07:42:41 -0000 Consider using a different editor in windows like UltraEdit. It can save in "unix" format and supports syntax hi-lighting. Better yet, remove windows from the equation. :) There are a lot of nice text editors for UNIX like OSes including xemacs, gedit (gnome), kate (kde), etc. I do understand the temptation to use a specific editor though. For large class assignments (C++), I often work on my laptop using xcode (apple). Fortunately, Apple switched to the winning team (UNIX) for line termination with OSX. On Aug 27, 2004, at 7:52 PM, Soo-Hyun Choi wrote: > Hi, > > I edit C++ codes with a certain text editor under Windows XP, and then > I open the C++ codes using vi editor under FreeBSD. Then, there are > bunch of "^M" sign at the end of each line. Does anyone know why this > is happening? And, does anyone can tell me how to avoid this kind of > things? > > Cheers, > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > Lucas Holt Luke@FoolishGames.com ________________________________________________________ FoolishGames.com (Jewel Fan Site) JustJournal.com (Free blogging)