by Puer · 13y ago · 0 comments
" Use w!! to sudo save after file is already opened
cmap w!! w !sudo tee % >/dev/null
See Nathan Long's awesome answer for an explanation:
http://stackoverflow.com/questions/2600783/how-does-the-vim-...C-a and C-e and a dozen of others are there, yes, but good luck if you think you can use M-%, M-h or whatever is the Emacs equivalent of Vim's text-objects and motions (which is what the parent was thinking about).