Joined April 2015
·
Posted to
Become root inside vim
over 1 year
ago
Put the following into vimrc for convenient if you always forgot sudo.
"Allow saving of files as sudo when I forgot to start vim using sudo.
cmap w!! w !sudo tee > /dev/null %
Agreed. My workspace is almost the same as you, but a cup of coffee instead of water and mac with HHKB keyboard makes coding more productively.