Scholarly examination of the original text suggests that vv. 6-8 should follow vv. This transposition creates a typical lament. Distressed by hostile enemies, the devout soul seeks Yahweh's presence in the sanctuary. There finding the spiritual resources for courage and confidence in Yahweh, the psalmist makes a vow to sing praises to God all his life.
Initial despair leads to devotion which enriches faith and ends in praise.
While not included in this reading, vss. 9-11 seem to have little to do with the rest of the psalm and could have been added by another hand. Yet there is some reason to believe that the outburst of vindictiveness expressed in vs. 10 reflects the intensity of the psalmist's spiritual struggle. Because a few people still come there to seek sanctuary. He then gives a moving testimony of someone seeking respite from the meaningless scurry of the contemporary rat race.