Last active
August 29, 2015 14:17
-
-
Save chesster/07e1d31aaf177a95c3dc to your computer and use it in GitHub Desktop.
use w!! command to write files as root in Vim
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!! w !sudo tee % >/dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment