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

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to