I sometimes need to insert auto_incremented, numbered columns on other people's machines so I'm looking for a good way to do so without relying on any custom plugins, macros, or scripts; standard Vim commands only.
Example going from :
line a
line b
line c
...
line x
line y
line z
becoming then :
line a
line b
line 3 c
...
line 24 x
line 25 y
line z
doing something like
:3,25 something
If older versions of vim or vi have different ways of doing it I'd appreciate hearing about those solutions, too .
seq
unix program and virtual block mode.