The visitors reached stumps on Saturday at 4-486, 118 ahead of the Black Caps' hard-fought first innings total at Basin Reserve.
Gill blasted a six midway through the final session to reach the half-century mark and take his team past New Zealand's 368.
India's captain was saved by a DRS review of an lbw call off the bowling of Nathan Smith as the shadows crept across the ground, but was dismissed two runs short of his 12th Test century in the final over of the day.
Jacob Duffy (1-180) came in for particular punishment on a day to forget for the New Zealand seamers, but bowled Gill off his pads and had a strong shout on new batter Anshul Kamboj turned down with the day's final delivery.
Rishabh Pant had been forced to shelter from a barrage of bouncers from the desperate New Zealand bowlers at the start of his innings.
But he slipped the leash in the last half an hour to claim a 22nd Test fifty and finish the day 55 not out.
Seasoned opener Rahul had earlier played foil to his more flamboyant teammates, securing his 13th Test hundred soon after lunch before playing on to a Smith delivery to end his 290-ball knock in the final session.
Paceman Kyle Jamieson (1-57) finally made a breakthrough after lunch with the second new ball, beating Devdutt Padikkal with a fine delivery that straightened and rattled the top of the off stump.
Padikkal, who had reached the half-century mark for the fourth time in his five Tests and was targeting his third century, already had 80 runs on the board in a second-wicket partnership of 165 with Rahul.
The conditions were in contrast to Thursday's first two sessions when Jasprit Bumrah and the other Indian seamers exploited a grassy surface to reduce New Zealand to 5-70.
Henry Nicholls, who scored 175 not out, and Glenn Phillips (118) rescued the New Zealand innings with a 216-run stand for the sixth wicket.