One scenario I could see this fitting is when having to connect to some docker container and test a change on the fly.
That's a bit naughty but sometimes needed to prove something useful.
In that case you've got an effemeral file system, and probably had to install Vim in the first place, knowing that that when you close the container all will be forgotten.
Ofcourse in that situation you probably don't need to disable the Vim swap files, so that's one less thing to changet the defaults on.
I often use Busybox for that kind of thing as you're usually missing other useful OS stuff and its little Vi clone is usually enough.
That's a bit naughty but sometimes needed to prove something useful.
In that case you've got an effemeral file system, and probably had to install Vim in the first place, knowing that that when you close the container all will be forgotten.
Ofcourse in that situation you probably don't need to disable the Vim swap files, so that's one less thing to changet the defaults on.
I often use Busybox for that kind of thing as you're usually missing other useful OS stuff and its little Vi clone is usually enough.