Yet another approach:

Insert a new line that contains the number 1.
qq (start recording)
yy (yank the line)
p  (put the yanked line)
^A (increment the number under the cursor)
q  (stop recording)

You will now have a file with 2 lines in it: 1 and 2.

Now the fun begins:

[EMAIL PROTECTED] (repeat the recorded macro [yank, put, increment] 98 times)

Dave


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to