vi
How to Save a Read-Only File in Vi Without Reopening It
I often encounter a situation where I start editing a file as a normal user, only to realize that the file is read-only for my current user. Instead of closing the file and reopening it with elevated privileges, I prefer to save my changes directly. Here’s the method I