Archive for May, 2013

Handy vim shortcut

Too many times I have started editing a configuration file, or other files that require root privileges, with my normal user account.  A handy vim shortcut:

:w !sudo tee %

allows me to save the file without needing to discard my changes and re-doing them in a new edit session.