Tuesday, June 7, 2011

paste and increment a number

I want to paste a string that contains a number like "value1".

Each time I paste I want to increment the number.
The ultimate goal is something like 50p to do this 50 times.
(value1\nvalue2\nvalue3...)

I thought about pasting it 50 times first and run over the pasted
lines with some cool regex, but I failed doing so.

What is the easiest way to achieve this?

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: