From H6004; conjunction, that is, society ; mostly adverbial or prepositional (with prepositional prefix), near, beside, along with: - (over) against, at, beside, hard by, in points.
32 occurrences in 28 verses in the Hebrew Old Testament.
So David and his men proceeded along the road as Shimei went along the ridge of the hill opposite him. As Shimei went, he yelled curses, threw stones, and flung dust at David.