Re: vi editor related question

2004-08-30 Thread Shantanu
+++ Soo-Hyun Choi [freebsd] [28-08-04 00:52 +0100]: | 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, do

Re: vi editor related question

2004-08-28 Thread Geert Hendrickx
On Sat, Aug 28, 2004 at 09:20:54AM +0530, Subhro wrote: > I have come across a script (Perl) called dos2unix. You can check that > out too. Google for the link. > > Regards > S. It's in the Ports tree: textproc/unix2dos. Simply do: "dos2unix " if you want to edit the file under FreeBSD (UNIX),

Re: vi editor related question

2004-08-28 Thread Lucas Holt
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 understa

Re: vi editor related question

2004-08-27 Thread Subhro
I have come across a script (Perl) called dos2unix. You can check that out too. Google for the link. Regards S. On Sat, 28 Aug 2004 05:46:04 +0200, Radek Kozlowski <[EMAIL PROTECTED]> wrote: > On Fri, Aug 27, 2004 at 10:52:04PM -0400, Mike Jeays wrote: > > If you are using plain vi, you can get r

Re: vi editor related question

2004-08-27 Thread Radek Kozlowski
On Fri, Aug 27, 2004 at 10:52:04PM -0400, Mike Jeays wrote: > If you are using plain vi, you can get rid of the unwanted characters > with the command > :1,$s/ctrl-v-m//g where "ctrl-v-m' means hold down the Ctrl key while > you press v followed by m. You will see them magically disappear. Anothe

Re: vi editor related question

2004-08-27 Thread Mike Jeays
On Fri, 2004-08-27 at 20:46, Parv wrote: > in message <[EMAIL PROTECTED]>, wrote > Soo-Hyun Choi thusly... > > > > I edit ... certain text editor under Windows XP, and then I open > > ... using vi editor under FreeBSD. Then, there are bunch of "^M" > > sign at the end of each line. Does anyone know

Re: vi editor related question

2004-08-27 Thread Parv
in message <[EMAIL PROTECTED]>, wrote Soo-Hyun Choi thusly... > > I edit ... certain text editor under Windows XP, and then I open > ... 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? Cause is the default line

Re: vi editor related question

2004-08-27 Thread Kevin D. Kinsey, DaleCo, S.P.
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? Microsoft has chosen (for a long time now) to i

vi editor related question

2004-08-27 Thread Soo-Hyun Choi
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,