summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/editor/L57.1a
diff options
context:
space:
mode:
authorIan Darwin <ian@cvs.openbsd.org>1998-09-28 16:01:46 +0000
committerIan Darwin <ian@cvs.openbsd.org>1998-09-28 16:01:46 +0000
commit8d70bdbdf6fd88bf88b9a384cfaafb6668c804ec (patch)
tree034fd6a68d5b6928d6fe4e51de71c9868bb460b1 /usr.bin/learn/lib/editor/L57.1a
parente9be7faad5fbf61edcad3700142615e315e407bc (diff)
import BTL learn(1) lessons/editor
Diffstat (limited to 'usr.bin/learn/lib/editor/L57.1a')
-rw-r--r--usr.bin/learn/lib/editor/L57.1a48
1 files changed, 48 insertions, 0 deletions
diff --git a/usr.bin/learn/lib/editor/L57.1a b/usr.bin/learn/lib/editor/L57.1a
new file mode 100644
index 00000000000..c03026f985c
--- /dev/null
+++ b/usr.bin/learn/lib/editor/L57.1a
@@ -0,0 +1,48 @@
+#print
+For symmetry, you can use
+
++
+
+instead of either ".+1p" or an empty
+line (just a newline). The only advantage
+that + has is that you can repeat it:
+
+++
+
+prints the second following line, and
+
++++
+
+the third. The same is true of -.
+If the current line is line number 10,
+what line number is -- going to be?
+(Hint: you can find out by editing a file
+such as "pres", saying "10p", and then
+saying "--", and then saying ".=" - remember
+the "=" command?)
+When you find out, type "answer N" where
+N is the number.
+#create pres
+George Washington
+John Adams
+Thomas Jefferson
+James Madison
+James Monroe
+John Quincy Adams
+Andrew Jackson
+Martin van Buren
+William Henry Harrison
+John Tyler
+James K. Polk
+Franklin Pierce
+Millard Fillmore
+James Buchanan
+Abraham Lincoln
+#copyin
+#user
+#uncopyin
+#match 8
+#log
+#next
+60.1a 10
+60.2a 5