I am editing a .sql file in Vim:
INSERT INTO apps_forms (app_id, form_id) VALUES (1, 1),
What I'm looking to do is yank the
(1, 1), line and paste it 137 times; however, I want the second number in parenthesis to be incremented each time. The output would look like:
INSERT INTO apps_forms (app_id, form_id) VALUES (1, 1), (1, 2), (1, 3), ... (1, 137),
Is there a way to do that in Vim and, if so, what command would I use?