summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/editor/L45.1b
blob: a02865e73f46ef2515be26257c51744d9ad2d63c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#print
The opposite command to splitting is joining.
But this isn't done with a "s" as you might expect;
it uses an entirely separate command called "j"
(for "join").  To join two or more adjacent (!)
lines, such as lines 3 through 6, simply type
   3,6j
You can add a "p" at the end to see the result.

If you don't specify any lines, "j" by itself joins
line "." and ".+1".
In no case does "j" add any extra blanks -- you have
to put them in for yourself if you want them.

The file "split" has six lines.  Convert it into
three lines by joining 1 and 2, 3 and 4, and 5 and 6.
Make sure that the words are separated by spaces.
Re-write, then type "ready".
#create Ref
Check your arithmetic: avoid costly mistakes.
Attach W-2 forms: they must be attached to your return.
Sign your return: your spouse must sign too.
#create split
Check your arithmetic:
avoid costly mistakes.
Attach W-2 forms:
they must be attached to your return.
Sign your return:
your spouse must sign too.
#user
#cmp Ref split
#log
#next
50.1a