Nie jestem pewien, co robi wyrażenie podrzędne ({nr}) w vimie. Instrukcja mówi:
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.
Rozumiem, co robi submatch (0), ale co to znaczy „{nr}” th submatch ”?