I'm totally new to vim and I know what magical things vim can do. My requirement is to append a sequence of numbers at the end of each line and I saw somebody did that before in front of me. It's just that I don't have enough time to search for the correct command, so I think post a question here should be a faster way since I'm running out of time. Sorry for being a noob but seems this is the only way I can come up with.
So the sample file content is like
1 Afghanistan
2 Albania
3 Algeria
4 American
5 Andorra
6 Angola
7 Anguilla
8 Antarctica
a list of countries, imagine it is a database table and each column is separated with tab. I already figured out a way to append tab to the end of each line, but now the problem is to add a number at the end of each line as well, and the number for each line is exactly same with its id(the first number)
I somehow think that it should be done with visual mode, but please tell me a working solution if you know. Any help is highly appreciated.
Best Regards, Hai Lang