Non sono chiaro cosa faccia l'espressione di submatch ({nr}) in vim. Il manuale dice quanto segue:
submatch({nr}) *submatch()*
Only for an expression in a |:substitute| command. Returns
the {nr}'th submatch of the matched text. When {nr} is 0
the whole matched text is returned.
Example:
:s/\d\+/\=submatch(0) + 1/
This finds the first number in the line and adds one to it.
A line break is included as a newline character.
Capisco cosa fa submatch (0), ma cosa significa "{nr}" th submatch "?