This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Unix/DOS text mode?


On Tue, Nov 20, 2001 at 07:54:47PM -0600, Joshua wrote:
>     I think I'm being a bit dense on this issue for which I apologize.  What
> option needs to be set to have the Cygwin-packaged vim autodetect
> binary/text files and edit/save accordingly?  My .vimrc is a binary file,
> BTW.  Thanks and BCNU//jle

Nothing.  It should work automagically.  Which it does on my system.
I've just tested it explicitely since your postings made me nervous.

However, the unix/dos file recognition works based on examining only
the first line, AFAIK, so if the first line has only a LF instead of
an CRLF for some reason, vim treats the file as unixy.  Then you see
the ^M beginning with line 2.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]