 Vigil studied law at the University of León in León, Nicaragua, and was afterwards temporarily active as a lawyer and notary in Tegucigalpa.In 1824 he was a member of the federal parliament.In 1826-27, he was governor of the province of Tegucigalpa, but after the occupation of that city by the troops of federal President Manuel José Arce, he was arrested.