> ...increasing number for different lines...
the following idiom is very flexible, and so, worth learning:
:let i = 1
:g/X/s//\=i/|let i+=1
So in your case, you'd add lots of a[X], then run the above.
Regards, John
--
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:
Post a Comment