Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!tektronix!tekmdp!stevew From: stevew@tekmdp.UUCP (Stephen Wood) Newsgroups: net.sources Subject: Joining block of text in vi Message-ID: <2154@tekmdp.UUCP> Date: Fri, 19-Aug-83 19:21:12 EDT Article-I.D.: tekmdp.2154 Posted: Fri Aug 19 19:21:12 1983 Date-Received: Sat, 20-Aug-83 09:03:55 EDT Lines: 30 I have often wanted to join blocks of text in vi as follows : line1 line2 line1 linea line3 line2 lineb : ________\ line3 linec : / : linea : lineb linec : : Well, here's one way to do it: 1) program one of your terminal keys with : ma'bddmb'ap-Jr&+ 2) goto linea and type : mb 3) goto line1 and hit the key you programmed until all lines are joined. This leaves your lines in the form of line1&linea. Stephen Wood ...!tekmdp!bronze!stevew