There's nothing canonical to indicate that Kirk commanded a vessel prior to Enterprise. He was, as others have indicated, first officer of the Republic, with Captain Garrovick as his CO.
His promotion to captain, and assuming command of Enterprise were, per screen-Trek, simultaneous.
His promotion to captain, and assuming command of Enterprise were, per screen-Trek, simultaneous.