kiss-repository

personal kiss repository
git clone git://git.ckyln.com/~cem/kiss-repository.git
Log | Files | Refs | Submodules | README | LICENSE

nvi-17-tutorial_typos.patch (3004B)


      1 #! /bin/sh /usr/share/dpatch/dpatch-run
      2 ## 17tutorial_typos.dpatch
      3 ##
      4 ## DP: Fix typos in the nvi tutorial.
      5 
      6 @DPATCH@
      7 --- nvi-1.81.6.orig/nvi-1.79/docs/tutorial/vi.beginner
      8 +++ nvi-1.81.6/nvi-1.79/docs/tutorial/vi.beginner
      9 @@ -505,7 +505,7 @@
     10  j - moves the cursor DOWN one line
     11  h - moves the cursor one character to the LEFT
     12  
     13 -Section 22: {i} {a} {I} {A} {o} {O} ^[ (escape key)
     14 +Section 22: {i} {a} {I} {A} {o} {O} {^[} (escape key)
     15  
     16  For this and following sections you will need to use the ESCAPE key on your
     17  terminal.  It is usually marked ESC.  Since the escape key is the same as
     18 @@ -525,9 +525,9 @@
     19  on the word 'of'.)
     20  
     21  Now carefully type the following string and observe the effects:
     22 -  {iexample ^[}  (remember: ^[ is the escape key)}
     23 +  {iexample ^[}  (remember: ^[ is the escape key)
     24  The {i} begins the insert mode, and 'example ' is inserted into the line: 
     25 -be sure to notice the blank in 'example '.  The ^[ ends insertion mode, 
     26 +be sure to notice the blank in 'example '.  The {^[} ends insertion mode, 
     27  and the line is updated to include the new string.  Line 1 should look exactly 
     28  like Line 2.
     29  
     30 @@ -541,9 +541,9 @@
     31  of 'line'.  You can do this in several ways, one way is the following:
     32  First, type {/line /^M}.  This puts us on the word 'line' in Line 4
     33  (the blank in the search string is important!).  Next, type {e}.  The 'e' puts
     34 -us at the end of the word.  Now, type {as^[  (^[ is the escape character)}.  
     35 +us at the end of the word.  Now, type {as^[} (^[ is the escape character).  
     36  The 'a' puts us in insert mode, AFTER the current character.  We appended the 
     37 -'s', and the escape ^[ ended the insert mode.
     38 +'s', and the escape '^[' ended the insert mode.
     39  
     40  The difference between {i} (insert) and {a} (append) is that {i} begins
     41  inserting text BEFORE the cursor, and {a} begins inserting AFTER the cursor.
     42 --- nvi-1.81.6.orig/nvi-1.79/docs/tutorial/vi.advanced
     43 +++ nvi-1.81.6/nvi-1.79/docs/tutorial/vi.advanced
     44 @@ -26,8 +26,8 @@
     45      1         introduction: {^F} {ZZ}
     46      2         introduction (con't) and positioning: {^F} {^B}
     47      3         introduction (con't) and positioning: {^F} {^B}
     48 -    4         positioning: {^F} {^B} ^M (return key)
     49 -    5         quitting: {:q!} ^M key
     50 +    4         positioning: {^F} {^B} {^M} (return key)
     51 +    5         quitting: {:q!} {^M} (return key)
     52      6         marking, cursor and screen positioning: {m} {G} {'} {z}
     53      7         marking, cursor and screen positioning: {m} {G} {'} {z}
     54      8         marking, cursor and screen positioning: {z} {m} {'}
     55 @@ -44,7 +44,7 @@
     56     19         screen positioning: {H} {M} {L}
     57     20         character positioning: {w} {b} {0} {W} {B} {e} {E} {'} {`}
     58     21         cursor positioning: {l} {k} {j} {h}
     59 -   22         adding text: {i} {a} {I} {A} {o} {O} ^[ (escape key)
     60 +   22         adding text: {i} {a} {I} {A} {o} {O} {^[} (escape key)
     61     23         character manipulation: {f} {x} {X} {w} {l} {r} {R} {s} {S} {J}
     62     24         undo: {u} {U}
     63     25         review