Export vim as $EDITOR.