How to reverse-match a string in the Vim programming language?@TimFriske: After your edit this answer doesn't solve it. It gives the last position of any of the letters, not of all of them. So, in the example it gets the last position of letter 'a', because it's the first one with no repeated appearance after it. I don't know of a built-in but perhaps this solution can help you, because it seems simpler now.