Vim Save File You Didn't Sudo Edit -
Mar 8, 2011 · 1 minute readCategory: linux
This is post is now quite old and the the information it contains may be out of date or innacurate.
If you find any errors or have any suggestions to update the information please let us know or create a pull request on GitHub
Well if you do it again, this tip is for you. You CAN save the file using this command:
:w !sudo tee %
Lifesaver!
This one direct from one of my personal favourite sites, Command Line Fu