Created
July 10, 2014 09:59
-
-
Save MaciekBaron/ff69aad6ab593be6a956 to your computer and use it in GitHub Desktop.
vim: You can type w!! in vim to write to a read-only file (will ask for your password)
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