"one who changes opinions, actions, etc. to suit circumstances," 1680s, agent noun from trim (v.) in a nautical sense of "distribute the load of a ship so she floats on an even keel" (1570s), hence, "to adjust the balance of sails or yards with reference to the wind's direction" (1620s).