💾 Archived View for gmi.bacardi55.io › blog › 2016 › 12 › 03 › save-vim-forgot-sudo captured on 2024-12-17 at 09:34:45. 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 %