Tuesday, 9 July 2013

Vim sudo write

" Allow saving of files as sudo when I forgot to start vim using sudo.
cmap w!! w !sudo tee > /dev/null %

No comments:

Post a Comment