Boss Craig Levein claimed a "couple of moments of real quality" gave Hearts a 2-1 Ladbrokes Premiership win over Kilmarnock at Rugby Park.
The game came to life in the 38th minute when Sean Clare took an Arnaud Djoum pass and all too easily moved into space at the edge of the box before drilling a shot low past goalkeeper Dan Bachmann and in off the post.
Hearts' well-worked second goal came two minutes before the break when Clare's quick free-kick to Jake Mulraney down the left was swiftly cut back for Steven Naismith to sweep the ball into the net from six yards.
Winger Jordan Jones reduced the deficit with a penalty just before the interval but the Gorgie side saw out the second half without too much concern to move to within a point of fourth-placed Aberdeen.
Levein claimed after a fifth win in six games that his side have got their "mojo" back and in his assessment of the latest success said: "It is hard to get points down here, hard to beat Kilmarnock.
"It was a hard-fought, competitive, game of cat and mouse and a couple of moments of real quality won us the game.
"Arnaud Djoum's play leading up to the pass to Sean Clare and the execution of the set-piece were the difference between the two teams.
"Austin (MacPhee, assistant) works really hard with the set-pieces and everything about it fell into place – and the fact that Steven was on the end of it made me feel we had the chance to score."
Killie remain in third place, behind Rangers on goal difference and six points behind leaders Celtic.
Manager Steve Clarke claimed it was not one of referee Steven McLean's better performances and felt his team's cause was not helped by four yellow cards inside the last 18 minutes of the contest.
He said: "Hearts did a good job on us. We played all right. The referee was not at his best tonight.
"Why do all the cards come at the end of the game when it suits Hearts to break the rhythm of the game?
"They defended well to be fair but stoppage after stoppage after stoppage doesn't suit us at that stage of the game.
"Card after card after card is too late, bring your cards out earlier and control the game."