Last active
December 18, 2015 06:59
-
-
Save jwoodlee/5743150 to your computer and use it in GitHub Desktop.
Vim Tricks
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
:w !sudo tee % - saves a file as sudo (password prompted) if you forgot to open with sudo in the first place |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice, I like it. Hope I’ll remember to give it a try next time I run into this situation. Thanks, jwoodlee!