[vim] Translate regex backreferences from vim form to javascript form

... so that users can use \1, \2, etc in the replace expressions.