Skip to content

Instantly share code, notes, and snippets.

@alfredormz
Last active December 17, 2015 07:59
Show Gist options
  • Save alfredormz/5577109 to your computer and use it in GitHub Desktop.
Save alfredormz/5577109 to your computer and use it in GitHub Desktop.
vim :w!! When you need to make changes to a system file, you can override the read-only permissions by typing :w!!, vim will ask for your sudo password and save your changes.
cmap w!! %!sudo tee > /dev/null %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment