public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* vi "W10: Warning: Changing a readonly file" on large read-write file
@ 2005-01-01 12:52 Michael Bax
  2005-01-03 10:02 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Bax @ 2005-01-01 12:52 UTC (permalink / raw)
  To: cygwin

When attempting to edit a *writeable* file of "zero" lines but 53 MB in size
(no newlines), vi appears to hang.  Ctrl-C is followed by the response
	W10: Warning: Changing a readonly file
following which it appears that one is editing a new file.  Quitting without
writing succeeds.

	cygwin 1.5.12-1
	vim 6.3-1

Cheers
Michael


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: vi "W10: Warning: Changing a readonly file" on large read-write file
  2005-01-01 12:52 vi "W10: Warning: Changing a readonly file" on large read-write file Michael Bax
@ 2005-01-03 10:02 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2005-01-03 10:02 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-03 10:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-01 12:52 vi "W10: Warning: Changing a readonly file" on large read-write file Michael Bax
2005-01-03 10:02 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).