Automatically generating text with Vim, using patterns like incrementing numbers, etc.
Vim supports automatically generating text following a pattern, via macros, motions and functions. For example, the following generates a sequence of numbers from 1 to 10:
1and back to normal mode
Ypyank the line and paste it below
qstop recording the macro
8@qrepeat the macro in the register
Other facilities for automation include using functions in the replacement of a
:substitute command, looping over text, etc.