It is annoying when you realize that all you have done to the file that you are currently editing in vim cannot be saved because you need root permissions. Thanks to the masters of commandlinefu I know how to do it anyway.
:w !sudo tee %
It is annoying when you realize that all you have done to the file that you are currently editing in vim cannot be saved because you need root permissions. Thanks to the masters of commandlinefu I know how to do it anyway.
:w !sudo tee %