Created
May 16, 2013 11:48
-
-
Save Swop/5591187 to your computer and use it in GitHub Desktop.
Vim: save the file as root (by Vincent Jousse)
This file contains 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
" Paste this in your .vimrc file | |
" Use w!! when you've forgotten to open your file as root | |
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