Save read only Vim file
:w !sudo tee % >/dev/null
Linux
procedural