I want to use vi to quickly edit text.

there is the format on lines m to n of the file.


I want to edit the above lines to the following


is there a quick method in vi to achieve the above functions?


I think something like


Would do it. Assumptions: comma is not a “word” character (?), no more than one record per line.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.