Commit | Line | Data |
---|---|---|
fd15fd37 BJ |
1 | |
2 | For symmetry, you can use | |
3 | ||
4 | + | |
5 | ||
6 | instead of either ".+1p" or an empty | |
7 | line (just a newline). The only advantage | |
8 | that + has is that you can repeat it: | |
9 | ||
10 | ++ | |
11 | ||
12 | prints the second following line, and | |
13 | ||
14 | +++ | |
15 | ||
16 | the third. The same is true of -. | |
17 | If the current line is line number 10, | |
18 | what line number is -- going to be? | |
19 | (Hint: you can find out by editing a file | |
20 | such as "pres", saying "10p", and then | |
21 | saying "--", and then saying ".=" - remember | |
22 | the "=" command?) | |
23 | When you find out, type "answer N" where | |
24 | N is the number. | |
25 | #create pres | |
26 | George Washington | |
27 | John Adams | |
28 | Thomas Jefferson | |
29 | James Madison | |
30 | James Monroe | |
31 | John Quincy Adams | |
32 | Andrew Jackson | |
33 | Martin van Buren | |
34 | William Henry Harrison | |
35 | John Tyler | |
36 | James K. Polk | |
37 | Franklin Pierce | |
38 | Millard Fillmore | |
39 | James Buchanan | |
40 | Abraham Lincoln | |
41 | #copyin | |
42 | #user | |
43 | #uncopyin | |
44 | #match 8 | |
45 | #log | |
46 | #next | |
47 | 60.1a 10 | |
48 | 60.2a 5 |