[2] In 950, Văn was sent to put down the rebellion of Đường, Nguyễn together with Dương Cát Lợi and Đỗ Cảnh Thạc.
[3] When their troops reached Từ Liêm, Văn turned his army back, and dethroned Dương Tam Kha.
[3] In 951, Duke Đinh Bộ Lĩnh rebelled and occupied Hoa Lư and did not pay tribute to the royal court.
[4][5] After Ngập's death, Văn solicited the title of military governor from the Southern Han (without meeting their representatives),[6][7] and he was granted the title Jiedushi of Tĩnh Hải quân (靜海軍節度使 Tĩnh Hải quân tiết độ sứ) and Governor of Annam (安南都護 An Nam đô hộ) by Southern Han.
[4] In 965, Văn led troops to put down the rebellion of Đường, Nguyễn, and was killed by an arrow in the midst of battle.