Instantly share code, notes, and snippets.
If you find you do not have permission to perform :w, use the following:
:w
:w !sudo tee % > /dev/null