[Techtalk] VI(M) - Changing & Merging 2 lines?

Subba Rao subba9 at cablespeed.com
Mon Sep 1 11:29:21 EST 2003


Hello,

I have a large text file where 2 lines (fields) form a record.  Now I want 
to merge the 2 lines into one line seperated by a comma.

Line1
Line2

The fields should be seperated by a comma.

Line1,Line2

How can I define a keystroke that will,
    	add a comma at the end of Line1
    	perform a JOIN of Line1 and Line2
    	move the cursor to the next record?

Any help appreciated.

Thank you in advance.

-- 
Subba Rao
subba9 at cablespeed.com
------------------------------------------------------------------------------
Old American Wild West saying:       God created men but Colt made them equal.
Today:                  Linus created Linux and Linux made IT companies equal.


More information about the Techtalk mailing list