Incidentally, because I want syntax-highlighting for ruby, I have this in my ~/.irbrc
def vim edit_interactively("vim -c 'set ft=ruby'") end
;)