limed's blog

GitHub Twitter

Ever had a time when you opened a file in vim and edited a bunch of stuff without realizing that its read-only, well this solves you from exiting out of the file and reopening the file with sudo

:w !sudo tee %
Back Home