This is the mail archive of the cygwin 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: vi "W10: Warning: Changing a readonly file" on large read-write file


On Jan  1 04:52, Michael Bax wrote:
> When attempting to edit a *writeable* file of "zero" lines but 53 MB in size
> (no newlines), vi appears to hang.

But it doesn't.  It just needs a lot of time to process the file.
After all vim is an editor.  It searches the whole file for line-endings
etc.  Try the same on another OS and you'll see the same effect.  On my
Linux box vi needs three or four minutes to scan such a file and to
become responsive again.  It eats up all CPU time while doing that.
Actually vim is not my preferred editor to edit binary files.


Corinna

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

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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]