The wikipedia entry (link below) covers the three years after the Soviet withdrawl when the (communist) People's Democratic Republic of Afghanistan attempted to fight off the Mujahideen.
It makes fascinating reading. The Mujahideen initially made no headway against the superior hardware of the government forces and its supporting millitias long after Soviet forces had left. Only when the Soviet Union ceased providing weapons, money and, crucially, petroleum products, did the communist regime collapse.
There may be a lesson for Obama here. The regime in Kabul is not likely to be abandoned by the allies in the same manner the Soviets abandoned the Afghan communists, and will continue to receive money and weaponry even if US troops pull out. It will be more effective support than the Soviets were ever capable of providing, and the Taleban have no real international sponsors of note unlike the Mujahideen.
The Taleban may be waging an effective guerrila war, but they'd have to eventually take the cities, and it is highly questionable whether they could do that against heavy weapons.
Would it perhaps not be better to fortify the cities, quit Afghanistan, and let the Taleban and Karzai nullify each other indefinitely? You could argue they deserve each other.

