I have a block in a yaml file that I would like to yank and paste several times:
- probeNumber: 1
probeLocation: [0, 0, 0.1]
Is it possible to automatically increment the value of probeNumber
and probeLocation
in each block? Like so:
- probeNumber: 1
probeLocation: [0, 0, 0.1]
- probeNumber: 2
probeLocation: [0, 0, 0.15]
- probeNumber: 3
probeLocation: [0, 0, 0.20]
probeLocation
is not an integer, it is incremented by a fixed value in each block (0.05). I need 1000 or so of these blocks so doing this manually is not feasible.