:w !sudo tee %
Last active
October 26, 2016 08:13
-
-
Save honlyHuang/19dd6f57affbb6c3ce41215279bb9912 to your computer and use it in GitHub Desktop.
vim tip, when you forgot `sudo` to edit a file, you can use this to save the file
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment