vim save sudo
April 2021

Save a Vim file with sudo when you opened it without sudo-ing:

:w !sudo tee %