Lim was first elected to Parliament in the
2008 election winning the seat of Segambut from the governing
Barisan Nasional (BN) coalition. Segambut had previously been considered as a BN stronghold. The election saw urban Chinese and Indian voters swarm to the DAP and its coalition allies; however, given the large minority of Malay voters in Segambut, Lim's victory was also attributable to a sizeable number of Muslim Malays in the constituency backing the DAP, a secular party with few Malay members or politicians. In the
2013 election he re-elected to the Segambut seat for second term. In the
2018 election Lim switched to Kepong constituency and won the seat by an extremely large majority and percentage of total votes. He retained the seat in the
2022 election with a slightly smaller majority and percentage of total votes. == Controversies ==