Sunday, April 3, 2011

Re: How to inseart increasing numbers in some columns?

On 2011-04-03, yanzhisheng wrote:
> hi,
> the visual block mode can be applied where the same text are required for all
> the lines. but, now i want to inseart different text, i.e., increasing number
> for different lines. what should I do?
> what I what is to inseart the following texts:
>
> a[1];
> a[2];
> a[3];
> a[4];
> a[5];
> a[6];
> a[7];
> a[8];

Take a look at Charles Campbell's visincr plugin,
http://www.vim.org/scripts/script.php?script_id=670, which allows
you to easily make lists of indexes like that as well columns of
increasing letters, dates, etc.

Regards,
Gary

--
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: