South Carolina interim coach Shawn Elliott won his first game after Steve Spurrier's resignation.

Streeter Lecka Getty Images North America

COLUMBIA, S.C. -- Steve Spurrier wasn't on the sidelines for South Carolina. But his visor was, waved by interim coach Shawn Elliott as he ran on the field. And Elliott's first game for the Gamecocks ended like many of Spurrier's did -- with a win.

Pharoh Cooper caught seven passes for 160 yards including South Carolina's only touchdown as the Gamecocks (3-4, 1-4 Southeastern) beat Vanderbilt 19-10 on Saturday.

More from FoxSports

Spurrier wasn't in Columbia, choosing instead to hang out with ESPN at the Michigan State-Michigan game. But Elliott wanted to make sure he did something for the man who gave him this opportunity.

"I know I wanted to do something to pay tribute to him. And I thought what better way than to bring out the visor," Elliott said.

Spurrier's signature headgear and an opponent the Gamecocks typically dominate appeared to do the trick. South Carolina is 21-4 against Vanderbilt (2-4, 0-3) and has won seven straight over the Commodores.

Cooper's third-quarter touchdown turned the tables after Vanderbilt scored a touchdown late in the second quarter and a field goal in its first second half possession to take a 10-6 lead.

Perry Orth hit Cooper as he came across the field and the junior outran the Vanderbilt defense for the 78-yard TD.

"It changed momentum. And then we gave it right back to them," Vanderbilt coach Derek Mason said.

The rest of the game turned sloppy. Vanderbilt would turn the ball over four times and South Carolina twice after Cooper's touchdown.

Skai Moore had an interception, a sack, recovered a fumble, forced another fumble and led the Gamecocks with 11 tackles. Former walk-on Orth was 17 for 28 for 272 yards and Brandon Wilds ran 24 times for 119 yards as South Carolina won just its second league game since September 2014.

Elliott Fry made four field goals of 19, 22, 31 and 47 yards and missed two from 39 and 55 yards for South Carolina.

Darrius Sims ran six times for 104 yards, while Johnny McCrary went 21 of 42 for 177 yards, a touchdown and three interceptions for the Commodores, who have lost 11 in a row in the SEC, all since Mason took over as coach.

"If you have five turnovers on the road, I don't see how you can win at somebody else's house," Mason said. "We still kept it to a 19-point game. And if you can do that, you should have an opportunity to win."

For the first time since 1999, South Carolina started a game without a coach who won a national championship on the sidelines. Spurrier resigned Tuesday during his 11th season after he had taken over for Lou Holtz.

The Gamecocks turned to former offensive line coach Elliott, who continues his tradition of pushing and jumping into his linemen like they were in a mosh pit before the game. He slapped hands with fans and couldn't stop smiling during his postgame news conference.

"I won a state championship on that field," said Elliott, who played for Camden High, about 30 miles from Columbia. "There is something special about this place."

Cooper said Elliott jolted the team out of its doldrums.

"All the guys were pretty much pumped," Cooper said. "We know what kind of guy coach Elliott is. He's loud, he's always passionate about the game He always has fun."

South Carolina responded to Elliott with its best offensive performance of the season, gaining 424 yards. And the defense, which came into the game last in the SEC, held Vanderbilt to 332 yards -- 96 yards below the unit's average.

But there aren't a lot of easy games left on South Carolina's schedule. The Gamecocks play three teams -- Texas A&M, Florida and Clemson -- who all started Saturday in the top 10. They have to win one of those to be eligible for an eighth straight bowl game. The Gamecocks also failed to get a touchdown on four trips to the red zone and have just six TDs in 21 trips inside the 20 this season.

South Carolina has trailed at half every game this year. The Gamecocks led for most of the first 30 minutes, but a 14-play, 79-yard drive that took up nearly half the second quarter ended with a 4-yard touchdown pass from McCrary to Caleb Scott that put Vanderbilt up 7-6 at the break.

South Carolina failed to get a first down in its next possession, and Vanderbilt put together a 10-play drive, but the Gamecocks defense stopped the Commodores on third-and-2 from the 5, forcing a 23-yard field goal.

Cooper caught his touchdown pass three plays later.