I find VisIncr invaluable for such operations (here is the GitHub version for those using Vundle or NeoBundle). The plugin "makes it easy to create a column to increase or decrease the number, dates or days." The following is an example of adding line numbers:
Select the first column of the file in visual block mode:
gg<Cv>G
Insert the start number (1 in this case) and the column separator (I accept Tab here):
I1<Tab><Esc>
Re-select the first column of the file:
gv
Run the VisIncr command to increase the number:
:I<CR>
You can rightfully justify numbers using another command:
:II<CR>
Incrementing dates, letters, hexadecimal and roman numbers is just as easy.
source share