photo of the author

September 5, 2020

Tried to come up with a way to remember the sudo tee hack for when I forget to start Vim with sudo:

Save with the ! shell command using sudo to tee-split to the % current file name.

:w !sudo tee %