💾 Archived View for gmi.bacardi55.io › blog › 2016 › 12 › 03 › save-vim-forgot-sudo captured on 2023-03-20 at 18:12:28. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
Posted on 2016-12-03
If you forget to open a file in vim a sudo/root, you can simply do in vim (sudo needs to be installed):
:w !sudo tee %