home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / src / baseline / jove-4.14.6.lha / jove-4.14.6 / doc / teach-jove < prev    next >
Text File  |  1992-01-10  |  39KB  |  903 lines

  1.                J O V E   T U T O R I A L 
  2.  
  3. Welcome to JOVE - an advanced, easy-to-use, user-friendly environment 
  4. for editing text, programs or anything else you may like to type.
  5.  
  6. JOVE commands generally involve the CONTROL key (sometimes labelled
  7. CTRL or CTL) or the META key (generally labelled ESCAPE).  Rather than
  8. write out META or CONTROL each time we want you to prefix a character,
  9. we'll use the following abbreviations:
  10.  
  11.  C-<chr>  means hold the CONTROL key while typing the character <chr>
  12.       Thus, C-F would be: hold the CONTROL key and type F.
  13.  M-<chr>  means type the META (ESCAPE) key and release it, then type
  14.       the character <chr>.  The <chr> can be upper or lower case
  15.       and it will have the same meaning.
  16.  
  17. Important note: if you must exit at some point, type C-X C-C.
  18. The characters ">>" at the left margin indicate directions for you to
  19. try using a command.  For instance:
  20.  
  21. >>  Now type C-V (View next screen) to move to the next screen.
  22.     (go ahead, do it by depressing the control key and V together).
  23.     From now on, you'll be expected to do this whenever you finish
  24.     reading the screen.
  25.  
  26. Note that there is an overlap when going from screen to screen; this
  27. provides some continuity when moving through the file.
  28.  
  29. The first thing that you need to know is how to move around from
  30. place to place in the file.  You already know how to move forward a
  31. screen, with C-V.  To move backwards a screen, type M-V (depress the
  32. META key and type V, or type <ESC>V if you don't have a META or EDIT
  33. key).
  34.  
  35. >>  Try typing M-V and then C-V to move back and forth a few times.
  36.  
  37.  
  38. SUMMARY
  39. -------
  40.  
  41. The following commands are useful for viewing screenfuls:
  42.  
  43.     C-V    Move forward one screenful
  44.     M-V    Move backward one screenful
  45.     C-L    Center the current line--clear screen and redisplay
  46.         everything if current line is already at center.
  47.     
  48. >> find the cursor and remember what text is near it.
  49.    Then type a C-L.
  50.    Find the cursor again and see what text is near it now.
  51.  
  52.  
  53. BASIC CURSOR CONTROL
  54. --------------------
  55.  
  56. Getting from screenful to screenful is useful, but how do you
  57. reposition yourself within a given screen to a specific place?  There
  58. are several ways you can do this.  One way (not the best, but the most
  59. basic) is to use the commands previous, backward, forward and next.
  60. As you can imagine these commands (which are given to JOVE as C-P,
  61. C-B, C-F, and C-N respectively) move the cursor from where it
  62. currently is to a new place in the given direction.  Here, in a more
  63. graphical form are the commands:
  64.  
  65.               Previous line, C-P
  66.                   :
  67.                   :
  68.    Backward, C-B .... Current cursor position .... Forward, C-F
  69.                   :
  70.                   :
  71.               Next line, C-N
  72.  
  73. You'll probably find it easy to think of these by letter.  P for
  74. previous, N for next, B for backward and F for forward.  These are the
  75. basic cursor positioning commands and you'll be using them ALL the
  76. time so it would be of great benefit if you learn them now.
  77.  
  78. >> Do a few C-N's to bring the cursor down to this line.
  79.  
  80. >> Move into the line with C-F's and then up with several C-P's.  See
  81.    what C-P does when the cursor is in the middle of the line.
  82.  
  83. Lines are separated by a single Linefeed character, which is what Unix
  84. calls a Newline.
  85.  
  86. >> Try to C-B at the beginning of a line.  Do a few more C-B's.
  87.    Then do C-F's back to the end of the line and beyond.
  88.  
  89. When you go off the top or bottom of the screen, the text beyond the
  90. edge is shifted onto the screen so that your instructions can be
  91. carried out while keeping the cursor on the screen.
  92.  
  93. >> Try to move the cursor off the bottom of the screen with C-N and
  94.    see what happens.
  95.  
  96. If moving by characters is too slow, you can move by words.  M-F
  97. (Meta-F) moves forward a word and M-B moves back a word.
  98.  
  99. >> Type a few M-F's and M-B's.  Intersperse them with C-F's and C-B's.
  100.  
  101. Notice the parallel between C-F and C-B on the one hand, and M-F and
  102. M-B on the other hand.  Very often Meta characters are used for
  103. operations related to English text whereas Control characters operate
  104. on the basic textual units that are independent of what you are
  105. editing (characters, lines, etc).  There is a similar parallel between
  106. lines and sentences: C-A and C-E move to the beginning or end of a
  107. line, and M-A and M-E move to the beginning or end of a sentence.
  108.  
  109. >> Try a couple of C-A's, and then a couple of C-E's.
  110.    Try a couple of M-A's, and then a couple of M-E's.
  111.  
  112. See how repeated C-A's do nothing, but repeated M-A's keep moving
  113. farther.  Do you think that this is right?
  114.  
  115. Two other simple cursor motion commands are M-< (Meta Less-than),
  116. which moves to the beginning of the file, and M-> (Meta Greater-than),
  117. which moves to the end of the file.  You probably don't need to try
  118. them, since finding this spot again will be boring.  If you need the
  119. shift key to type a "<", then you must also use the shift key to type
  120. M-<.  Otherwise, you would be typing M-, .
  121.  
  122. The location of the cursor in the text is also called "point".  To
  123. paraphrase, the cursor shows on the screen where point is located in
  124. the text.
  125.  
  126. Here is a summary of simple moving operations including the word and
  127. sentence moving commands:
  128.  
  129.     C-F    Move forward a character
  130.     C-B    Move backward a character
  131.  
  132.     M-F    Move forward a word
  133.     M-B    Move backward a word
  134.  
  135.     C-N    Move to next line
  136.     C-P    Move to previous line
  137.  
  138.     C-A    Move to beginning of line
  139.     C-E    Move to end of line
  140.  
  141.     M-A    Move back to beginning of sentence
  142.     M-E    Move forward to end of sentence
  143.  
  144.     M-<    Go to beginning of file
  145.     M->    Go to end of file
  146.  
  147. >> Try all of these commands now a few times for practice.  Since the
  148.    last two will take you away from this screen, you can come back
  149.    here with the command C-X C-X (which will be explained later).
  150.    These are the most often used commands.
  151.  
  152. Like all other commands in JOVE, these commands can be given arguments
  153. which cause them to be executed repeatedly.  The way you give a
  154. command a repeat count is by typing META and then the digits before
  155. you type the command.  (Remember META is ususally called ESCAPE)
  156.  
  157. For instance, META 8 C-F moves forward eight characters.
  158.     
  159. >> Try giving a suitable argument to C-N or C-P to come as close
  160.    as you can to this line in one jump.
  161.  
  162. The only apparent exception to this is the screen moving commands, C-V
  163. and M-V.  When given an argument, they scroll the screen up or down by
  164. that many lines, rather than screenfuls.  This proves to be much more
  165. useful.
  166.  
  167. >> Try typing M-8 C-V now.
  168.  
  169. Did it scroll the screen up by 8 lines?  If you would like to scroll
  170. it down you can give an argument to M-V.
  171.  
  172.  
  173.  
  174. THE UNIVERSAL ARGUMENT
  175. ----------------------
  176.    Almost every command in JOVE takes a so-called Universal Argument.
  177. This argument, although it is interpreted differently in some cases,
  178. usually means REPEAT.  One important exception to this is with the screen
  179. moving commands.  In this case, the number refers to the number of LINES
  180. to scroll, not the number of screens.
  181.  
  182.    The way you give a command a universal argument is by typing ESC and
  183. then the number. For example, ESC 10 C-F would move you forward ten
  184. characters.
  185.  
  186. >>> Try  giving a suitable argument to C-N or C-P to come as close as you
  187.     can to this  line  in  one  jump.  Then  try giving the same command, 
  188.     except make the number negative.
  189.  
  190.   Another count-giving command is C-U.  This command, when you first type
  191. it, gives you an argument of 4 (four).  If you type C-U C-U, you will get
  192. an argument of 16.  Each time C-U is typed, the argument is multiplied by
  193. four.
  194.  
  195. >>> Try typing ESC 8 C-V now.
  196.  
  197. THE GOTO COMMAND
  198. ----------------
  199.    Now that we've learned about the universal argument, we can  introduce
  200. another  cursor  positioning  command,  the command to move to a specific
  201. line.  This command is given by giving a line number via  ESC,  and  then
  202. typing M-G.
  203.  
  204. >>> Try  using  the M-< and M-> commands to move to the beginning and the
  205.     end of the file. Then come back here  using the M-G  command (this is 
  206.     line 206, so you'd type ESC 206 M-G.)
  207.  
  208. QUITTING FROM COMMANDS
  209. ----------------------
  210.  
  211. The character in JOVE used to quit out of all commands which request
  212. input is C-G.  For example, you can use C-G to discard a numeric
  213. argument or the beginning of a command that you don't want to finish.
  214.