A man pleaded guilty Thursday to killing his ex-wife inside a Las Vegas Strip hotel room and agreed to serve at least 20 years in prison, his attorney said.