How to exit from read-only mode in Vim

readonlyvim

I opened a file in readonly mode; is there a way to get out of readonly mode?

Best Answer

You could do this:

:set noro

That unsets the read-only flag, but if the underlying file is still not writable by you then vim still will be unable to write to it.

Related Question