This has been a question since I watched the episode Ted Mosby, Architect [HIMYM, Season 2] long time back. Yesterday I came across this again and I still don't get it. What does "Yeah, you did" actually mean?
Copying the conversation here:
Marshall: Well, all skyscrapers kinda look like a...
Ted: Marshall, it's a seventy-eight story pink marble tower with a rounded top and two spherical entryways at the front.
Marshall: Wow, so it's the whole package.
Barney: Yeah, you did. [fist-bumps Marshall]
Marshall: Had to.
Barney: Oh, dude, if they're selling condos you gotta get me in. And don't give me the shaft.
Marshall: Yeah, you did.
Barney: Had to. [they fist-bump again]
Ted: It's a travesty! It's gonna define the skyline of the city. If it was me, I could have designed something amazing. Instead, I'm spending twelve hours a day designing the cornices.
Marshall: Yeah, you did. [holds out his fist for a bump]
Ted: That wasn't one.
[PS : I am not a native English speaker. I guess I am not so familiar with a lot of colloquial phrases]