I have this number in my file:
123456
223456
333456
443456
I want to use vim to organize it like this:
123456,223456,333456,443456
This file is very long, and it will definitely not be efficient if you edit it bit by bit. Is there any good way to record macros?
If you want to convert the branch data into comma-separated data, you can use the following replacement command:
:%s/$n/, /g