Skip to content

Instantly share code, notes, and snippets.

View nclark's full-sized avatar
💭
wu tang is for the children

Neal Clark nclark

💭
wu tang is for the children
View GitHub Profile
env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/opt/local/bin/mysql_config5
do you ever try to edit some shit, like /etc/hosts or some apache
config, and forget to sudo? and then you have to f-ing exit vim and
re-run the command with sudo out in front of it? i hate that shit.
so here's a way to deal with that.
1. install the sudo.vim plugin
mkdir -p ~/.vim/plugin && cd ~/.vim/plugin \
&& curl -o sudo.vim \
'http://www.vim.org/scripts/download_script.php?src_id=3477'