Was the Afghanistan war a long war?

The US has been fighting in Afghanistan longer it was fighting in Vietnam. It is the longest war in US history.