[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vim
Subject:    Re: Re: Converting Windows line-endings to Unix line-endings in vi
From:       "vipin aravind" <vipin.aravind () wipro ! com>
Date:       2001-06-28 14:26:03
[Download RAW message or body]

u'r vim's version number
vipin
----- Original Message -----
From: <pr1@club-internet.fr>
To: <jboonstra@gospelcom.net>
Cc: <vim@vim.org>
Sent: Thursday, June 28, 2001 7:35 PM
Subject: Re: Re: Converting Windows line-endings to Unix line-endings in vi


Hello,

unfortunately, set fileformat=unix does not work in vi!

I get the following message : option not found.

Philippe



----Message d'origine----
>Date: Thu, 28 Jun 2001 09:43:02 -0400 (EDT)
>De: Joel Boonstra <jboonstra@gospelcom.net>
>A: "pr1@club-internet.fr" <pr1@club-internet.fr>
>Copie à: "vim@vim.org" <vim@vim.org>
>Sujet: Re: Converting Windows line-endings to Unix line-endings in vi
>
>> neither set ff nor %s/^M//gc work in vi. Does anyone have any other
>> suggestions?
>
>Sure.  You should be able to do this:
>
>:set fileformat=unix
>
>when editing a document with DOS linefeeds.  Then, after writing the file,
>vim will convert the linefeeds appropriately.
>
>If that doesn't work, some quick command-line perl might:
>
>$~> perl -pi -e 's#\cM##g' file.txt
>
>Both of those methods have worked for me.
>
>--
>Joel Boonstra
>jboonstra@gospelcom.net
>
>
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic