vim-forgot-sudo-to-save¶
vim and forgot to sudo and now?
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 %
vim and forgot to sudo and now?
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 %