Here is the source code.
test1 test2
There are only two lines in the text.
I want to insert a sequence of rows from the 5th row into the 16th row. I tried this using below code.
for i in range(1,12) echo ".item".i."," endfor
1. The source text.
2. Enter command mode and enter codes

Two problems to solve.
The 1.echo command prints the first line of .item1 to the end.
for i in range(1,12) echo ".item".i.","
2. How to create a sequence of lines in the specified line: from 5 to 16 in the edited text with vimscript?
The desired result will be as shown below.

Almost done!
What I get is below with the command :pu! =map(range(1,12), 'printf(''item%1d'', v:val)') :pu! =map(range(1,12), 'printf(''item%1d'', v:val)') .
Both of them cannot work.
:5pu! =map(range(1,12), 'printf(''item%1d'', v:val)') :5,16pu! =map(range(1,12), 'printf(''item%1d'', v:val)')

The last problem for my desired format is when the cursor is on the 3rd line, how to create the desired result?