类型:
1
Run Code Online (Sandbox Code Playgroud)
然后录制一个宏:
qa (start recording a macro stored in register a)
yy (copies the line)
p (inserts that line below)
CTRL+A (increases number by one)
q (stops recording)
Run Code Online (Sandbox Code Playgroud)
接下来,您可以通过以下方式调用该宏 99 次:
99@a
Run Code Online (Sandbox Code Playgroud)