:%s/one/two/ will replace the first occurrence of one with two. Is there an easy way to replace the last occurrence, instead?
I can’t assume it’s next to the end-of-line, and there’s nothing unique around the last occurrence to ‘grab’ to use, similar to this:
one two three one two three one two one two one two ...
The easiest way would be to allow arbitrary text in front of the match, and specify the matched region using
\zs: