@register(u'edit-and-execute-command')
def edit_and_execute(event):
 buff = event.current_buffer
 buff.open_in_editor(event.cli)
 buff.accept_action.validate_and_handle(event.cli, buff)

@ register ( u'edit-and-execute-command' ) def edit_and_execute ( event ) : buff = event . current_buffer buff . open_in_editor ( event . cli ) buff . accept_action . validate_and_handle ( event . cli , buff )
invoke an editor on the current command line .