How to save a file with sudo in VIM

:w !sudo tee %


1.07 Thousand
Ali

Get our stories delivered

From us to your inbox weekly.