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?



 Hallo !

On Wed, 21 Nov 2001, Corinna Vinschen wrote:

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,

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

 Hmm. At least for the version I installed last friday (using
 "install now" (aka setup) on the cygwin site) did *not* work.
 I have had to copy "/usr/share/vimv/im60/vimrc_example" as
 ".vimrc" to my $HOME and add the line "set fileformats=unix,dos"
 under the line "set nocompatible".

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

 My english is somewhat limited, but as I understand the "options.txt"
 in vim doc-folder, vim reads the whole file dicides on how many <CR>,
 <CR><NL> and >NL> it found. (However, that chapter in the docs is not
 really clear to me).


 Bjoern

-- 
+---------------------------------------------------------------------+
| Dipl.-Phys. Bjoern Kahl +++ AG Embedded Systems and Robotics (RESY) |
| Informatics Faculty +++ Building 48 +++ University of Kaiserslautern|
| phone: +49-631-205-2654 +++ www: http://resy.informatik.uni-kl.de   |
+---------------------------------------------------------------------+



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