Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 18:29:17 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: "Christensen, David" cc: cygwin AT cygwin DOT com Subject: Re: FW: vim 6.1.300-1 DOS line endings (newline expansion) In-Reply-To: <97AD70A848712741860C76A8F884D922014F4AF3@ati-exchg2.asyst.com> Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 21 Feb 2003, Christensen, David wrote: > cygwin AT cygwin DOT com: > > Igor Pechtchanski wrote on February 21, 2003 2:35 PM: > > Put the following in your ~/.vimrc: > > > > set fileformat=dos > > Sounds logical. Unfortunately, it doesn't seem to work: > > dchristensen AT A05390:~$ cat .vimrc > set autoindent > set number > set shiftwidth=4 > set fileformat=dos > " Cygwin: > syntax off > " Linux: > ":if exists("syntax_on") | syntax off | else | syntax enable | endif > dchristensen AT A05390:~$ vi baz > 1 abcd > 2 > dchristensen AT A05390:~$ cat baz > abcd > > dchristensen AT A05390:~$ dump baz > 000000 a b c d \n \n > 000006 > > > I believe .vimrc is read every time Vim starts. I don't get it... > > David David, After reading vim help carefully, seems you also need the "fileformats" variable set. Try set fileformats=dos set fileformat=dos and see what happens. For more details, "vim -c 'help file-formats'". 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/