Where to put the .vimrc file for sudo in OS X Lion?
Try doing sudo visudo and making sure that this lines appears somewhere in there:

Defaults  env_keep += "HOME"


This should maintain the HOME directory and ~ should would as it did in Snow Leopard.