Joining block of text in vi
Stephen Wood
stevew at tekmdp.UUCP
Sat Aug 20 09:21:12 AEST 1983
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
More information about the Comp.sources.unix
mailing list