How to save a file with sudo in VIM

:w !sudo tee %


Ali

Get our stories delivered

From us to your inbox weekly.