I run into situations where I have to repeat a single line of text with some minor editing.
For example:
1. insert into table_name (col_one, col_two) values (val_1, val_2);
2. insert into table_name (col_one, col_two) values (val_3, val_4);
3. insert into table_name (col_one, col_two) values (val_5, val_6);
and so on... (1000 records)
I mean, I will only type the first query and write a macro using the text editor to generate the required number of queries. Hope you get the picture.
Please suggest a better text editor for this purpose. As I have already tried and failed with Ultraedit/Textpad. Maybe I am doing something wrong, as I cudnt get Vim to do this either.