@Gilles I just found out that vim lets you edit a file you have no write access to by unlinking it and then creating it again. Is there a way to force emacs to do that?
And no, I can't think of any good reason why you would want to. Feels more like a bug than a feature.
I was just quite stumped by what appeared to be vim circumventing file system permissions. Felt much better when I figured out what was actually happening.
@terdon it makes sense in some scenarios, e.g. a group-writable directory where people tend to have umask 022 → individual files are 644 even if they're meant to be edited by the group