Skip to content

vim forgot to sudo

Forgot to sudo vim before opening the file and now cannot save the file within vim.

Here is the solution:

:w !sudo tee %

Comments