Venezuela's Hugo Chavez has won a referendum to eliminate term limits, enabling him to run again for president in 2012.