When Sri Lanka toured Bangladesh in February 2006 regular captain Marvan Atapattu was injured and Mahela Jayawardene became captain while Sangakkara was made vice-captain. Pakistan toured Sri Lanka for two Test and three ODIs in March 2006, and with Atapattu still injured Jayawardene and Sangakkara remained captain and vice-captain respectively. The pair had only expected to hold the positions on an interim basis, but extended into a third series as Atapattu failed to recover in time to tour England in April and ended up filling the roles full-time. In July 2006, Sangakkara made his second-highest Test score to-date (287) against South Africa. In a record-breaking partnership with Mahela Jayawardene, he set up the world record for the highset partnership in Test cricket--624 runs--in this match.  On 6 December 2007 he made it to the top spot of ICC Test player rankings with a rating of 938, the highest rating ever achieved by a Sri Lankan player, and became the first batsman ever to score in excess of 150 in four consecutive tests. His skill was recognised worldwide when he earned selection for the ICC World XI One-Day International team that competed against Australia in the Johnnie Walker Series in October 2005. Despite the World XI losing all of the one-day games by considerable margins, Sangakkara left the series with some credit, averaging 46. He was one of the winners of the 2008 inaugural Cricinfo awards for outstanding batting in Test cricket.  Sangakkara holds the record for being the fastest man to 8,000, 9,000, 10,000 (jointly held), 11,000 and 12,000 runs in Test cricket. During Sri Lanka's tour to England in May 2006, he was named the vice-captain of the side. On 3 March 2009, a terrorist attack on the Sri Lankan team convoy in Pakistan injured 6 Sri Lankan players including Sangakkara. Sangakkara suffered shrapnel wounds in his shoulder. In November 2006, Sangakkara was included in the ICC World XI Test team. Next year, he signed an agreement to join Warwickshire County Cricket Club. That year, he scored back-to-back double centuries in Tests and became only the fifth cricketer in the history to do so.

Answer this question "what did he do as vice-captain?" by extracting the answer from the text above.
Sangakkara made his second-highest Test score to-date (287) against South Africa.