Skip to content

Instantly share code, notes, and snippets.

@jodell
Created March 18, 2010 17:20
Show Gist options
  • Save jodell/336590 to your computer and use it in GitHub Desktop.
Save jodell/336590 to your computer and use it in GitHub Desktop.
# VI MAGIC
# NOTE: Why am I using hash comments?
# Courtesy of bfeigin:
# "found this little nugget, great whenever you edit a root owned config file but forget to sudo before hand"
:w !sudo tee %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment