Last active
December 17, 2015 07:59
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmap w!! %!sudo tee > /dev/null % |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment