delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/21/17:35:00

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 21 Feb 2003 17:34:42 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Christensen, David" <dchristensen AT Asyst DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: vim 6.1.300-1 DOS line endings (newline expansion)
In-Reply-To: <97AD70A848712741860C76A8F884D922014F4AF1@ati-exchg2.asyst.com>
Message-ID: <Pine.GSO.4.44.0302211733530.16682-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Fri, 21 Feb 2003, Christensen, David wrote:

> cygwin AT cygwin DOT com:
>
> I just set up Cygwin on a Windows 2000 SP3 machine, and chose "DOS" for
> "Default file type".  I have noticed that vim 6.1.300-1 generates Unix line
> endings on new files.  I would like DOS line endings.  I searched the Cygwin
> mailing list and the Vim site, but didn't find any clues.  I don't know if
> this a vim, readline (.inputrc), cygwin, or and/or Windows issue.
>
>
> Any suggestions?
>
> TIA,
> David

Put the following in your ~/.vimrc:

set fileformat=dos

Hope this helps,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019