- To: slug <slug@xxxxxxxxxxx>
- Subject: Re: [SLUG] vim 6.1 on RH 8.0 behaviour for readonly files
- From: Ken Foskey <foskey@xxxxxxxxxxxxxxxx>
- Date: Wed Dec 4 19:21:02 2002
- Organization:
On Wed, 2002-12-04 at 12:32, Chris Velevitch wrote:
> When using vim 6.1 on RH 8.0 to edit a read only file, if you modify
> the file and save the changes with :w! and continue editing, the file
> permissions are still read only and all subsequent save of changes,
> each time, require the use of :w! .
>
> I would have expected the file permissions to be permanently changed
> to read/write after the first save. Is this a reasonable behaviour? Is
> there an option to make vim behave this way?
vim temporarily overrides the read only attribute (assuming it can)
and then writes a new copy. It then returns the file to the
original setting which is most likely what you want.
Yes, this is entirely reasonable. All definitions vary :-)
KenF