Is there anything like this that integrates well with Vim? Or should I get hacking?
http://m5.posterous.com/slime-like-communication-from-vim-to...
It lets you open a vim session from ipython, and send lines, selections, or the whole file back to the shell. If you'd like to do some hacking, it doesn't seem to be able to send single function definitions yet.
From the site: Conque is a Vim plugin allowing users to execute and interact with programs, typically a shell such as bash, inside a buffer window.