Create a Vim alias for saving your file when you forget to open it with sudo
:
cmap w!! w !sudo tee % >/dev/null
You’re welcome.
Create a Vim alias for saving your file when you forget to open it with sudo
:
cmap w!! w !sudo tee % >/dev/null
You’re welcome.