Formula reference, scriptlets, etc.
Add this to ~/.vimrc:
cmap w!! w !sudo tee % > /dev/null
Then,
:w!!
That will write the file when you accidentally opened it without the right (root) privileges
A place for technology-related musings, howtos, tutorials, recipes, instructions, notes, and other brain droppings.