Bash, vim, etc bits

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