Tried to come up with a way to remember the sudo tee
hack for when I forget to start Vim with sudo:
Save w
ith the !
shell command using sudo
to tee
-split to the %
current file name.
:w !sudo tee %
Tried to come up with a way to remember the sudo tee
hack for when I forget to start Vim with sudo:
Save w
ith the !
shell command using sudo
to tee
-split to the %
current file name.
:w !sudo tee %