HB Charles Jr has some great advice in praise of long pastorates:
Brothers, churches are not stepping-stones. It is wrong to pastor a church looking out the window for a bigger or better opportunity to come a long. The souls over which the Lord has made you an overseer deserve your best. For that matter, the Lord demands your best.
Be faithful right where you are. Work on the depth of your ministry and trust God to work on the breadth of your ministry. If the Lord intends for you to be somewhere, believe me, he knows how to get you there. Until then, plant your flag. Preach the word. Love the people you have been called to. Count it a privilege that the Lord would use you to lead his people. And serve the Lord with gladness.