What I want to do is replace this:
<|Filename.ext|5|0|>
with
<|Filename.ext|5|0|>
<|Filename.ext|5|1|>
<|Filename.ext|5|2|>
<|Filename.ext|5|3|>
<|Filename.ext|5|4|>
I wrote a necessary regular expression:
<|\(\w\| \)\+\.\w\+|\d\{1,2}|0|>
So, substitution would go something like this:
%s/<|\(\w\| \)\+\.\w\+|\d\{1,2}|0|>/REPLACEMENT/g
But what should REPLACEMENT actually be?
EDIT: Please, note that 5 in the example could be any other number: I am looking for a general solution. So, this:
<|Filename.ext|n|0|>
---->
<|Filename.ext|n|0|>
<|Filename.ext|n|1|>
<|Filename.ext|n|2|>
...
<|Filename.ext|n|n-2|>
<|Filename.ext|n|n-1|>
Sorry for not making this clear right away.