home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR4 / PVILE356.ZIP / VILE.HLP < prev    next >
Text File  |  1993-07-28  |  66KB  |  1,625 lines

  1.  
  2. Getting along with vile
  3. -----------------------
  4.  
  5.     Use Ctrl-D and Ctrl-U to scroll through this help information.
  6.  
  7.     Type Ctrl-O to make this the only window on the screen.
  8.     Type Ctrl-K to get rid of this window.
  9.  
  10.     The only vile commands described herein are those not 
  11.     present in vi, or differing greatly from those in vi.
  12.     There is a section at the bottom describing other differences
  13.     between vile and vi.
  14.  
  15.     First, to leave vile, use any of the following:
  16.         :q
  17.         :quit
  18.         :exit
  19.         :wq    (writes current buffer before quitting)
  20.         :q!    (quits without writing any changes!)
  21.         Q
  22.         :wwq or ZZ    (will write all changed buffers)
  23.         ^X-^C    (don't know why.  _They_ don't put in ":q" for _us_!
  24.              Actually, if ^C is your interrupt character, this
  25.              won't get you out of vile.)
  26.  
  27.     To get help (probably just this text), use any of:
  28.         :h
  29.         :help
  30.         ^X-^H
  31.         ^A-^H
  32.  
  33.     To get a complete list of all commands, type ":describe-bindings".
  34.     To get a list of all commands that contain the strings "name",
  35.     type ":apropos name".  These lists will show all command synonyms
  36.     and key sequences that are bound to the same function.
  37.     
  38.     You needn't type full command names -- type a few characters and
  39.     hit TAB to perform command completion.  Type a question mark to
  40.     display a list of the characters that you would have to type to
  41.     complete the command.  For example, to complete
  42.  
  43.         :unm?            -- you type
  44.         :unm{a}[pr]        -- you see
  45.  
  46.     The completion-display shows curly braces around the string that
  47.     will be supplied by pressing TAB, and square brackets around
  48.     characters that you must type to make the command unique.
  49.     (Name-completion applies as well to mode and environment-variable
  50.     names.)
  51.  
  52.     If your screen hops around a lot when you scroll, see the "Note on
  53.     Scrolling" section near the bottom of this file.
  54.  
  55. General Remarks
  56. ---------------
  57.  
  58.     Vile holds text in "buffers".  Usually, these correspond to a file
  59.     that you are editing, but not always.  For instance, a buffer
  60.     might be used to display this help text, or to hold the output
  61.     of a shell command that you have run.  Buffers have names, and
  62.     these usually match the names of the files they contain.
  63.  
  64.     Buffers are sometimes displayed in windows.  A buffer may be 
  65.     displayed in more than one window at the same time.  There is 
  66.     no such thing as a hidden window.  All existing windows are on 
  67.     the screen.  There may, however, be hidden buffers, which are not 
  68.     currently associated with any window.
  69.  
  70.     All yank/delete registers (the default unnamed register, the numbered
  71.     registers ("1-"9) that hold line-deletes, and the named registers
  72.     ("a-"z)) are global to the editor, and not attached to any single
  73.     buffer.  Thus you can delete text in one buffer and put it back in
  74.     another. 
  75.  
  76.     Undo operations are attached to a buffer, not a window.  Thus if
  77.     you have two windows to the same buffer, and make a change in one,
  78.     you can undo it in the other.
  79.  
  80. Buffer manipulation commands:  
  81. -----------------------------
  82.  
  83.     _    Show a history list of the up to 9 most recently visited 
  84.         buffers.  Follow this command with a digit to select that
  85.         buffer, or simply repeat it ("__") as a synonym for "_1".
  86.         Modified buffers are preceded by a '*' in the history list.
  87.         There are many different ways to get the previous file:
  88.             __
  89.             _1
  90.             1_
  91.             :e#
  92.             ^^   (ctrl-^)  (but many keyboards can't produce this)
  93.  
  94.         [ See the note under "Differences", below, for comments
  95.         on vi's use of '_'.]
  96.  
  97.     :e    Edit a file.  If the file is already in a buffer, that buffer
  98.         will be recalled into the current window.  This occurs as
  99.         follows: If the name given contains no path delimiters
  100.         (i.e.  slashes), then it will be compared to the existing
  101.         vile buffer names.  Failing that comparison (or if there
  102.         are any slashes in the name), the name will be stretched
  103.         into an absolute path, and will be compared to the existing
  104.         buffers' filenames.  In either case, the matching buffer
  105.         will be chosen.  If there are no such matches, the file
  106.         will be fetched from the filesystem.  This matching
  107.         technique introduces an ambiguity, since buffer names are
  108.         created from the last path component of filenames.  To
  109.         force vile to edit a file from the current directory whose
  110.         basename matches that of one that was edited elsewhere,
  111.         simply preface the name with "./".  For example, if you
  112.         edit "../Makefile" and later attempt to edit "Makefile",
  113.         vile will assume you are referring to the _buffer_ named
  114.         "Makefile".  To get the file in the current directory,
  115.         specify "./Makefile".
  116.  
  117.     :e!    Re-edit a file.  A different filename can be given, and the 
  118.         buffer name will change to match it.  This command is not as
  119.         necessary in vile as it is in vi, since multiple buffers may
  120.         have outstanding unwritten changes.
  121.  
  122.     :n    Go to the next buffer.  "next" means least recently used.
  123.         (The ":n file ..." version of the command is not supported.)
  124.  
  125.     :rename    Rename the current buffer.  Prompts for a new name.  Does
  126.         not affect the filename associated with the buffer.  Use ":f"
  127.         to do that.
  128.         This command is useful for renaming the "[Output]" buffer, if
  129.         you wish to preserve its contents, but run a new command. 
  130.  
  131.     :rewind    Go to the first buffer.  This is used only in 'noautobuffer'
  132.         (vi-style buffering) mode.
  133.  
  134.     :b    Edit a buffer.  Recalls the named buffer.  Does not look for
  135.         a file of that name.  Will find "invisible" buffers.
  136.  
  137.     :ki    Kill a buffer.  Remove the buffer and its contents from the
  138.         editor.  Will ask if changes to the buffer should be discarded.
  139.         
  140.     ^X-e    Edit the file whose pathname appears under the cursor.  For
  141.         example, if you are editing a makefile, you could edit one
  142.         of the source files by placing the cursor at the start of
  143.         its name and using this command.
  144.  
  145.     ^X-k    Kill the buffer whose name or filename appears under the
  146.         cursor.
  147.  
  148.     *    Display a list of all buffers, or make that display go away
  149.         if it's already present.  Leave your finger on the key, and
  150.         it's easy to create and destroy the list.  The buffers are
  151.         numbered; the numbers correspond to the history numbers
  152.         shown and used by the '_' command, described above.  (If
  153.         the buffer number is greater than 9, then the "nn_" form of
  154.         the '_' command must be used, since '_' will only accept a
  155.         single following digit.)  The order of the list is either
  156.         most-recently-used, or fixed, depending on the setting 
  157.         of "autobuffer" mode (see below).  Vile attempts to keep
  158.         the contents of the buffer list window up to date.
  159.  
  160.     ^A-*    Always display a list of all buffers.  Useful for updating the
  161.         list if it's already on the screen but may be out of date.
  162.         Any argument will cause the list to include _all_ buffers,
  163.         even those normally considered "invisible".  (For example,
  164.         macros are stored in "invisible" buffers.)
  165.  
  166. Window manipulation commands:  
  167. -----------------------------
  168.  
  169.     ^X-2    Make Two windows.  Splits the current window in half. This
  170.         is the usual way to create a new window.
  171.     ^K or ^X-0    Get rid of (Kill) this window.
  172.     ^O or ^X-1    Make this the Only window on the screen.
  173.  
  174.     ^X-o    Move to the next window.
  175.     ^X-O    Move to the previous window.
  176.  
  177.     v    Make the current window smaller.
  178.     V    Make the current window larger.
  179.  
  180.     ^A-^D    Scroll the next window down half a screen.
  181.     ^A-^U    Scroll the next window up half a screen.
  182.     ^A-^E    Scroll the next window up one line.
  183.     ^A-^Y    Scroll the next window down one line.
  184.     (The previous four commands are useful when comparing two buffers.
  185.      Mnemonic -- think of them as affecting the "A"lternate window.)
  186.  
  187.     zH zM zL  These are synonyms for vi's 'z+', 'z.', and 'z-', which 
  188.         position the line holding the cursor at the top, middle, or
  189.         bottom of the screen, respectively.
  190.  
  191.     ^X-^R    Scroll the window right by 1/3 of a screen, or by the
  192.         number of columns specified.  Changes the "sideways" value.
  193.     ^X-^L    Scroll the window left by 1/3 of a screen, or by the
  194.         number of columns specified.  Changes the "sideways" value.
  195.  
  196.     If for some reason you can't get your screen set right via a
  197.     TERM variable, try the ":screen-rows" or ":screen-columns"
  198.     commands (which take their args (number of rows or columns
  199.     respectively) before you type the ":").
  200.  
  201. File manipulation commands:  
  202. ---------------------------
  203.  
  204.     The usual ":e", ":r", ":f", ":w" commands are available, though only
  205.     ":e!" is available of the "!" options.  The ":r" command reads the
  206.     named file in after the current line.  To read a file before the
  207.     first line, use ":0r".
  208.  
  209.     The commands ":ww" and ":wwq" correspond roughly to ":w" and ":wq",
  210.     but they each write all modified buffers.
  211.     
  212.     As in vi, ranges of lines specified by line numbers (including '.',
  213.     '$', and '%' shorthands) or marks may precede these commands.  
  214.     Unlike vi, search patterns cannot be used as line specifiers.
  215.  
  216.     In addition, two non-"colon" commands have been added:
  217.  
  218.     ^R    Prompts for a filename, and then reads it in _above_ the
  219.         current line.  If a register is specified (e.g. "a^R ), 
  220.         the file is read into that named register, but not inserted 
  221.         into the current buffer.
  222.  
  223.     ^W    is a writing operator, which prompts for a filename, and 
  224.         writes the specified region to that file.  Like all operators,
  225.         if the command is repeated, as in ^W^W, then lines are 
  226.         affected.  Use 10^W^W to write 10 lines.
  227.  
  228.         If a register is specified (e.g. "a^W ) then the command 
  229.         is _not_ an operator, but writes the specified register to 
  230.         the named file.  
  231.  
  232. Shell Access
  233. ------------
  234.  
  235.     Anywhere a filename is valid, a command name is also
  236.     valid, entered in the form "!shell-command".  The whole line is
  237.     handed to the shell, and the read or write operation is done on
  238.     the commands standard input or output, as appropriate.  Thus
  239.     you can type ":e !date" to edit a copy of today's date.
  240.  
  241.     The ": !cmd" shell escape works pretty much as it does in vi.
  242.     The command ":!!" will rerun the previous such shell command.
  243.  
  244.     The '!' operator works as a filter, as expected.
  245.     
  246.     In addition, the ^X-! command runs a shell command and captures
  247.     its output in a specific buffer, called "[Output]".  This is
  248.     almost identical to ":e !cmd", except that in that case the buffer
  249.     is named according to the command name.
  250.  
  251.     These output capture commands are most useful in conjunction with
  252.     the "error finder", '^X-^X', described below.
  253.  
  254.     On systems supporting job control, ^Z will suspend vile.
  255.  
  256. Text manipulation command:
  257. --------------------------
  258.  
  259.     Remember, these are only the new or different commands.  The 
  260.     standard vi set should still work.
  261.  
  262.     The vi "global" command is present, in its non-interactive form
  263.     only.  So is the "substitute" command.  These both look pretty
  264.     different while they're being used than they do in vi, and since
  265.     the searching is done right after the pattern is entered, there
  266.     can be a long delay while you're trying to finish typing your
  267.     complete command.  You can type commands just as you would have
  268.     in vi, i.e. ":g/oldpat/s//newstring/" will work.  But you won't
  269.     see any of the '/' characters.  Try it-- you'll get the idea.
  270.     Line ranges are not possible on ":g", but they are on ":s".
  271.  
  272.     The ":g" command can be followed by any of l (list), p (print),
  273.     < (left shift), > (right shift), r (read file), d (delete),
  274.     L (lower case), U (upper case), ~ (flip case), put (append
  275.     yanked text), Put (prepend yanked text), s (substitute),
  276.     trim (trim trailing whitespace).  For example, ":g/pattern/Put"
  277.     will insert the contents of the default yank register just
  278.     above every line containing "pattern".   The ":g" command can
  279.     only be used over the entire file -- smaller regions are not
  280.     permitted.
  281.  
  282.     The ":v" counterpart to ":g" is also implemented -- it performs the
  283.     given command on all lines that don't match the given pattern.
  284.  
  285.     The substitute command can be followed by any of 'g', a digit, or
  286.     'p', to do the substitution for all occurrences, the n'th
  287.     occurrence, or to print the resulting line respectively.  You can
  288.     also add a 'c', and you will be asked to confirm each replacement
  289.     before it occurs.  The text being replaced will be highlighted,
  290.     and you can answer with 'y', 'n', 'q', or 'a'.  'a' will suppress
  291.     further prompting, and will do the rest of the replacements.
  292.  
  293.     The ":&" and '&' commands work much as they do in vi, and repeat
  294.     the last substitution.  The '^A-&' command is a new operator (see
  295.     below), so it can work on regions: for example use '&}' to "repeat
  296.     the previous substitution over the rest of this paragraph".
  297.  
  298.     Infinite Undo 
  299.     --------------
  300.     The regular undo ('u') and line-undo ('U') are available for all
  301.     commands.  They are a little more predictable than their vi
  302.     counterparts, since they do not share the default yank register for
  303.     their operation.  Also, line-undo ('U') is available until the next
  304.     change anywhere in the file, rather than until you leave the line. 
  305.  
  306.     In addition, vile lets you undo all changes made to a buffer since
  307.     it was first edited (so-called "infinite undo").  The '^X-u'
  308.     command will undo changes, one by one (or given a count, several at
  309.     a time).  The '^X-r' command will walk forward, redoing the
  310.     previously undone changes one by one.  A fresh change to the buffer
  311.     will cause previously undone changes to no longer be redoable.
  312.     
  313.     The number of changes stored in the undo "history" is controlled by
  314.     the numeric mode "undolimit".  The default history length is 10 --
  315.     that is, only 10 changes may be undone.  Set the undolimit to 0 for
  316.     truly infinite undo.  This can consume a lot of memory.
  317.  
  318.     The cursor position after an undo may not always be
  319.     the same as it would be in vi.
  320.  
  321.     Operators
  322.     ---------
  323.     Vi has a class of commands known as "operators".  Operator
  324.     commands are always immediately followed by a motion command. 
  325.     The text affected by an operator is bounded by the initial
  326.     position, and the cursor position after the motion is
  327.     completed.  Thus the delete operator ('d') can be followed by
  328.     the word motion command ('w'), causing the next word to be
  329.     deleted.  The sequence "dG" will delete through the end of the
  330.     file, and "d/junk" will delete to the next occurrence of the
  331.     string "junk".  Operators can all be "stuttered" to affect
  332.     lines.  Thus "dd" deletes one line, "4dd" affects 4 lines,
  333.     etc. 
  334.  
  335.     Some operators in vile can be forced to affect whole lines,
  336.     though the motion wouldn't normally imply it, by using the ^X
  337.     form of the command.  For example, "d%" (assuming you are on a
  338.     curly brace) will delete a C-style block of code.  "^X-d%"
  339.     will delete that same area, plus anything else on the lines
  340.     containing the curly- brace endpoints.
  341.  
  342.     Note that some operators always affect whole lines, no matter
  343.     how the motion is specified.  For instance, "!w" will always
  344.     filter an entire line, and not just a single word. 
  345.  
  346.     There are several new operator commands:
  347.  
  348.     ^A-~    Is the operator form of the '~' command, so "^A-~~"
  349.         changes the case of all characters on the current
  350.         line, "^A-~w" does it to a word, "3^A-~}" does it for
  351.         3 paragraphs, etc.  (In vile, the simple '~' command
  352.         will take a repeat count, unlike some versions of vi.
  353.         If you wish it to be an operator, rebind '~' to the
  354.         "flip-til" command.)
  355.     ^A-u    Like ^A-~, but converts the region to upper case.
  356.     ^A-l    Like ^A-~, but converts the region to lower case.
  357.  
  358.     ^A-f Format the region based on the current fill column.  The
  359.         initial indentation of both the first and second lines of
  360.         each "paragraph" in the region are preserved, and all
  361.         subsequent lines get the second line's indentation.  This
  362.         makes indented/outdented paragraphs (like this one) work
  363.         correctly.  (This is intentionally _not_ the same behavior
  364.         obtained by using "!fmt", since that behavior is obviously
  365.         available elsewhere.)  The usual usage of this command is
  366.         "^A-f}", which reformats the current paragraph.  The
  367.         re-formatting begins again with each new paragraph, where a
  368.         paragraph has the same boundaries used by the '{' and '}'
  369.         commands -- i.e.  blank lines, or lines beginning in .I .L
  370.         .P .Q or .b.  This make is possible to use "3^A-f}" or
  371.         "^A-fG" to reformat multiple paragraphs.  The reformatting
  372.         operation know about both C and shell comments, and will
  373.         do the "right" thing with lines that start with '#' or '*'
  374.         characters.
  375.  
  376.     ^X-s    For every occurrence of a search string, put in a replace-
  377.         ment string.  This is similar to "s/pattern/replacement/g"
  378.         over the region.
  379.  
  380.     ^A-&    Is an operator in vile, similar to the traditional & command.
  381.         It repeats the last substitution over the specified region.
  382.         (Unlike the '&' command, this one will remember trailing
  383.         g, p, l, or numeric options.)
  384.  
  385.     ^X-d    Delete the region, including the lines it starts and ends on.
  386.     ^X-c    Change the region, including the lines it starts and ends on.
  387.     ^X-y    Yank the region, including the lines it starts and ends on.
  388.  
  389.     ^A-t    Trim trailing whitespace from all lines in the region.
  390.  
  391.     ^A-<SPACE> Convert tabs to spaces, using the current tabstop value.
  392.     ^A-<TAB>   Convert as many spaces to tabs as appropriate.
  393.  
  394.     Text insertion
  395.     --------------
  396.     ^X-p    Causes the previously yanked or deleted text, no matter
  397.         how it was obtained, to be inserted after the current line.
  398.         Usually text that did not consist of whole lines where it
  399.         came from is inserted immediately following the cursor.
  400.     ^X-P    As above, but the text is put before the current line.
  401.         Thus "dw" followed by a "p" command does a normal insertion
  402.         of the deleted word, whereas "^X-p" results in the word
  403.         being inserted on a line by itself.
  404.  
  405.     R    vi's overwrite mode is supported.  Note that the combination
  406.         of overwrite mode and the (ANSI) arrow keys can be used to
  407.         give a "picture drawing" mode of operation: anything you
  408.         type goes into the buffer without moving adjacent text, and
  409.         you can move around using the arrow keys without leaving
  410.         overwrite mode.  Hint: start with a buffer full of lines
  411.         that consist entirely of blanks (as opposed to blank
  412.         lines).
  413.  
  414.     Searching
  415.     ---------
  416.     ^X-/    Does a forward search for the "word" located under the
  417.         cursor.
  418.     ^X-?    Does a reverse search for the "word" located under the
  419.         cursor.
  420.     ^A-/    Does not do a search, but sets the search pattern to the
  421.         "word" under the cursor.  Useful for "picking up" a word
  422.         from one buffer, and searching for it in another.
  423.  
  424.     The following two commands may not always be present in vile,
  425.         depending on how it was built:
  426.     ^X-S    Incremental forward searching.  As you enter the search 
  427.         string, the cursor is advanced to the next match with 
  428.         what you've typed so far.  Use ^F and ^R to continue the
  429.         search forward or in reverse, using the current pattern.
  430.     ^X-R    As above, but in reverse.
  431.  
  432.     Tags
  433.     ----
  434.     Vile supports vi-style "tags" files.
  435.  
  436.     ":ta" or ":tag" allows you to enter a tagname to locate.  Changes
  437.         to that file and location.
  438.     ^]    Uses the identifier currently under the cursor as the 
  439.         tagname.
  440.     ^T or ^X-^] or ":pop" - pops to the file and location just previous
  441.         to the last tag command.
  442.  
  443.     When one of these commands is used, vile will (by default) look for
  444.     a file named "tags" in the current directory, and load it into a
  445.     hidden buffer for use during tag searches.  This buffer is editable
  446.     if you wish (":e tags"), but will not appear in the buffer lists. 
  447.     If a buffer named "[Tags 1]" is already available when a tag is
  448.     first requested, it will be used instead of a file found by
  449.     searching the tags setting, and of course will remain visible.
  450.  
  451.     The name of the default tags file may be changed with "set tags"
  452.     (see "tags" under "Editor modes", below).  If multiple filenames
  453.     are given in the "tags" setting (separated by whitespace), they are
  454.     searched in order, and placed in buffers named "[Tags 1]", "[Tags 2]",
  455.     "[Tags 3]", etc.
  456.  
  457.     If the ":ta" form of the command is used, tag matches must be
  458.     exact, unless the mode "taglength" is set non-zero, in which case
  459.     the first tag matching that many characters will be used.
  460.  
  461.  
  462. Miscellaneous commands
  463. ----------------------
  464.  
  465.     ^A-o    Remove all blank lines containing or immediately following
  466.         the current line.
  467.  
  468.     ^X-^X    The "error finder".  Goes to the next file/line error pair 
  469.         specified in the last buffer captured from a command's
  470.         output.  This buffer is usually created with the ^X-! command.
  471.         For example, "-!cc -c junk.c" puts all of the compiler output
  472.         into the buffer named "[Output]".  Repeatedly hitting ^X-^X 
  473.         will position the editor at each error in turn, and will
  474.         eventually start over again at the top.  The buffer searched
  475.         for "errors" will be the last shell command run, or the buffer
  476.         named with the "error-buffer" command.  The "Entering directory
  477.         XXX" and "Leaving directory XXX" messages that GNU make puts
  478.         out with the -w switch are honored, so that files are found
  479.         with the correct path.  (Tip: I use the following
  480.         macro to quickly grep a source directory for the string under
  481.         the cursor:
  482.             use-register g load-register "^X!egrep -n : *.[chs]^M"
  483.         where the ^X and ^M are each single control characters, entered
  484.         using ^V to escape them.  Then I invoke with @g to execute.)
  485.     ^X-t Set or report on the tab-stop width.  To set, the spacing must
  486.         precede the command, as in "4^X-t".  The "set tabstop"
  487.         command described below does the same thing.  The status
  488.         output indicates whether the buffer is currently using the
  489.         local or global copy of the tabstop value.
  490.     ^X-f Set the local fill-column to be used with ^A-f and auto-wrap
  491.         mode on insert.  The default value is 7/8's of the screen
  492.         size, with a maximum of 70.  Since arguments come before
  493.         commands, you type: 65^X-f.  The "set fillcol" command does
  494.         the same thing.  The status output indicates whether the
  495.         buffer is currently using the local or global copy of the
  496.         tabstop value.
  497.     ^X-X    Set encryption key. (not well tested, but hopefully not broken)
  498.         CRYPT must have been on when vile was built for this to do
  499.         anything.
  500.     K    Count prefix.  The first time you type it, it is equivalent
  501.         to an argument of 4 to the following command.  If you repeat 
  502.         it, it becomes worth 16, the next time 64, etc...  
  503.     %    In addition to finding matching braces, brackets, and
  504.         parentheses, the '%' command will find matching #ifdef's
  505.         and C style comments.  If the cursor is on the # of
  506.         "#ifdef", the '%' command will find the matching "#endif"
  507.         or "#else".  On an "#else" it will find "#endif", and on
  508.         "#endif" it will go back up to the "#if".  If the cursor is
  509.         on any part of a "/*" or "*/" sequence, it will find the
  510.         appropriate corresponding C comment endpoint.
  511.  
  512. Editor modes
  513. ------------
  514.  
  515.     Modes are universal, and affect the editor generally, or are
  516.     associated with either windows or buffers, and are usually
  517.     inherited from a set of global buffer and window modes.  The value
  518.     of a buffer or window mode will track changes to the respective
  519.     global mode, until the "local" value is set independently of the
  520.     global one.  To set or change a global mode, use ":set", to remove
  521.     the mode, use ":unset", ":setno", or ":set" with the modename
  522.     prefixed with "no".  To set and reset local modes, use ":setl",
  523.     ":unsetl", ":setlno".  To display modes, use ":setall", ":modes",
  524.     ":set all".  Local values are only shown if they differ from the
  525.     global values, whether they have been independently set or not. 
  526.     The "local" version of the set/unset commands ("setl"/"unsetl") do
  527.     not make sense when used with univeral modes.
  528.  
  529.     The possible modes, with synonyms in parentheses, and a trailing U,
  530.     B or W indicating whether the mode is universal, or belongs to
  531.     buffers or windows, are:
  532.  
  533.     alt-tabpos (atp) If set, vile will position the cursor over tab and
  534.         control characters the way emacs would, that is, at the
  535.         start of a tab or control character display sequence.  If
  536.         turned off (the default), the cursor is positioned over
  537.         tabs and control characters the way it would be in vi, i.e. 
  538.         at the end of the tab or control character display
  539.         sequence.  (To match the behavior of earlier versions of
  540.         vile, should be set.) (U)
  541.  
  542.     autobuffer (ab) Controls whether vile uses "most-recently-used"
  543.         style buffering, or vi-style (command-line order) buffers. 
  544.         That is, if autobuffer is on, then buffers are sorted in
  545.         order of use, in that buffers not frequently used will
  546.         drift to the end of the list.  If this mode is not on, then
  547.         vile will behave more like vi, in that buffers remain in a
  548.         fixed order, that in which they were edited. (U)
  549.  
  550.     autoindent (ai) During insert, newly created lines inherit their
  551.         leading indent from the previous line in the buffer. (B)
  552.  
  553.     autosave (as) Automatic file saving.  Writes the file after every
  554.         256 characters of inserted text.  Other file changes are
  555.         not counted. (B)
  556.  
  557.     backspacelimit (bl)  When in insert mode, this controls whether
  558.         one can backspace past the point at which the insert began. (B)
  559.  
  560.     bcolor    On systems supporting this, will set the background color.
  561.         Currently only DOS can do color, although the X11 version
  562.         (xvile) can be given colors at startup or via .Xdefaults.
  563.  
  564.     check-modtime  Check modification-time.  If a file has changed since
  565.         it was last read or written, vile will issue a "file newer
  566.         than buffer" warning and prompt appropriately for
  567.         confirmation when 1) popping up a window on an existing
  568.         buffer, 2) reading or writing the buffer, or 3) after
  569.         performing some shell command.  The prompt will occur only
  570.         once, unless the modification time of the file changes
  571.         again, in which case the warning will be repeated.  The
  572.         warning will be repeated in any case if the file is being
  573.         written.  Invoking a shell, or suspending/restarting vile,
  574.         will cause all visible buffers (those currently in windows)
  575.         to have their times checked immediately.
  576.  
  577.     cmode    C-code mode..  Maintains current indentation level
  578.         automatically during insert, like autoindent, above.  If a
  579.         line ends with a '{' or a ':', then the next line indents
  580.         further.  If a line begins with a '}', it is lined up with
  581.         the line containing its matching paired brace.  If a line
  582.         starts with '#' it is moved to column 1.  If the global
  583.         cmode is set, then the buffer's C mode is turned on
  584.         automatically only for files ending in a character from
  585.         c-suffixes.  Additionally, if a line begins with a '#'
  586.         character, it will not shift right with the '>>' command. (B)
  587.  
  588.     crypt    Causes files to be encrypted.  This is NOT compatible
  589.         with the UNIX crypt(1) routines. (B)
  590.  
  591.     c-shiftwidth (csw)  Will prompt for a new value for the shiftwidth
  592.         (see below) which will be used if a file is in cmode. (B)
  593.  
  594.     c-tabstop (cts)  Will prompt for a new value for spacing of tabstops
  595.         which will be used if a file is in cmode. (B)
  596.  
  597.     c-suffixes (csuf) A regular expression defining filename-endings that
  598.         set cmode.  (U)
  599.  
  600.     comments A regular expression defining commented paragraph
  601.         delimiters.  This is used in addition to the "paragraphs"
  602.         expression (see below) when reformatting a region.  The net
  603.         effect is that paragraphs inside of comments are preserved
  604.         when reformatting, but are not reachable with the '}' and
  605.         '{' motions.  (B)
  606.  
  607.     dirc    Causes vile to check each name when scanning directories for
  608.         filename completion.  This is slower, but provides additional
  609.         information allowing you to distinguish between directory and
  610.         file names in the prompt.  (U)
  611.  
  612.     dos    When writing the buffer, terminate lines with CR/LF pairs,
  613.                 rather than the usual single LF.  On input, if the global
  614.         DOS mode is set, then incoming CR/LF pairs are taken as
  615.         line terminators, and the local DOS mode is set on the
  616.         buffer if the majority of lines ended that way.  If global
  617.         DOS mode is _not_ set, then incoming CR characters will be
  618.         visible on the screen.  Setting this makes editing binary
  619.         files unreliable.  (This mode is set _on_ in DOS versions
  620.         of vile, and should be turned off if doing binary editing.) (B)
  621.  
  622.     fcolor    On systems supporting this, will set the foreground color.
  623.         Currently only DOS can do color, although the X11 version
  624.         (xvile) can be given colors at startup or via .Xdefaults.
  625.  
  626.     fillcol (fc) Will prompt for a new value for the fill column, where
  627.         auto-wrapping and region formatting will break lines. (B)
  628.  
  629.     glob    Controls how wildcard characters (e.g., '*' and '?') are
  630.         treated in prompts for filenames.  Set glob to 'off' to
  631.         disable expansion, to 'on' to use the internal globber. 
  632.         The internal globber will handle *, ?, [a-z] style ranges,
  633.         and environment variables.
  634.  
  635.         On UNIX, set glob to a pipe command to use that command to
  636.         expand more wildcards.  The default value of glob on UNIX is
  637.         "!echo %s".  If set to a command that will separate filenames
  638.         with newlines or nulls rather than spaces, then filenames
  639.         containing spaces may be more easily edited.  ("!/bin/ls -d %s"
  640.         is one possibility, "!glob %s" is another if you use csh.) (U).
  641.  
  642.     history (hi) When true (the default), commands from the :-line are
  643.         logged in a buffer [History].  Turning this off causes the
  644.         buffer to be removed.  (U)
  645.  
  646.     horizscroll (hs) If the cursor is moved "off-screen", this mode
  647.         controls what happens.  If set (as it is by default), the
  648.         whole screen will shift sideways to make the cursor position
  649.         visible.  If not set, then only the current line will shift,
  650.         which may be desirable on slower displays. (W)
  651.  
  652.     ignorecase (ic) Text searches normally match the pattern exactly.
  653.         With this set, searches are case-insensitive. (B)
  654.  
  655.     implybuffer (ib) Causes vile to create a buffer when you write to a new
  656.         file, or read from one (e.g., with ":r").  (U)
  657.  
  658.     linewrap (lw) Displays lines that are too long to fit on one line as a
  659.         series of "wrapped" lines.  Overrides left/right scrolling
  660.         controlled by "sideways" and "horizscroll" modes.  (W)
  661.  
  662.     list    (li) The buffer will be displayed with tabs and newlines made
  663.         visible, instead of as whitespace. (W)
  664.  
  665.     magic    Allow meta-characters in search strings.  See the section 
  666.         "Regular Expressions" for more detail. (B)
  667.  
  668.     newline (nl) The buffer ends with a newline.  This is set when reading
  669.         a buffer.  (B)
  670.  
  671.     number    (nu) All lines in the buffer will be prefixed by their line
  672.         number. (W) 
  673.  
  674.     paragraphs A regular expression defining where the "next-paragraph"
  675.         ('}') and "previous-paragraph" ('{') commands will go. (B)
  676.  
  677.     report A threshold value that is used to control messages that report
  678.         the number of lines deleted, changed, etc.  (U)
  679.  
  680.     samebangs (sb) Controls whether the "!!" and "^X-!" commands use the
  681.         same command string.  (U)
  682.  
  683.     sections A regular expression defining where the "next-section" (']')
  684.         and "previous-section" ('[') commands will go. (B)
  685.  
  686.     shiftwidth (sw) This is much like a tabstop, except that it is
  687.         independent of hardware tabs and tab characters.  It is the
  688.         number of columns a line will shift by if the '<<' or '>>'
  689.         commands are used, and it chooses the next column stop for
  690.         the cursor if a '^T' or '^D' is typed during insert mode. (B)
  691.  
  692.     showmatch (sm) During insert, if a closing '}', ']', or ')' character
  693.         is typed, the cursor will highlight the matching member
  694.         of the pair for about a quarter second. (B)
  695.  
  696.     showmode (smd) Causes an indicator on the modeline to indicate what
  697.         mode vile is currently in: insert (I), replace (R), or
  698.         command (none).  (B)
  699.  
  700.     showram (sr) Displays the amount of ram currently allocated at the
  701.         end of the message line. (U)
  702.  
  703.     sideways  Will prompt for a new value for the sideways scroll offset,
  704.         which allow display of a section of code normally off the
  705.         screen to the right.  Also affected by the ^X-^R and ^X-^L
  706.         commands.  (W)
  707.  
  708.     tabinsert (ti) Allow the physical insertion of tab characters into
  709.         the buffer.  If "notabinsert", and an attempt is made to
  710.         insert a tab character by explicitly typing it or by using
  711.         shiftwidth or the line shifting commands, then the
  712.         appropriate number of space characters will be inserted
  713.         instead.  Use '^V^I' to insert a real tab, and remember
  714.                 that pre-existing tabs will not be affected.  Use '^A-<SP>'
  715.                 to eliminate pre-existing tabs from a region of text. (B)
  716.  
  717.     tabstop (ts) Will prompt for a new value for spacing of normal
  718.         tabstops. (B)
  719.  
  720.     taglength (tl) Sets the significant length for tags.  If non-zero,
  721.         the first tag matching in that many characters will be used,
  722.         otherwise, tags must match the lookup pattern exactly.  This
  723.         will not effect tags picked up from the cursor -- they are
  724.         always matched exactly. (B)
  725.  
  726.     tagrelative (tr) Causes files looked up via the tags mechanism to
  727.         be found relative to the location of the tags file, rather
  728.         than relative to the current directory. This allows the
  729.         same tags file to be useful from different locations, while
  730.         not requiring absolute filenames.  For example, using 
  731.         `set tags "tags ../tags"' would allow a single tags file
  732.         to be used in a small source hierarchy from either the
  733.         parent or a child directory. (B)
  734.  
  735.     tags    This gives the names of the file(s) in which to look up
  736.         tag references.  It is a whitespace-separated list of
  737.         filenames.  Relative pathnames are evaluated with respect
  738.         to the current directory of vile at the time of the tags
  739.         lookup. (B)
  740.  
  741.     terse   vile produces more "status" messages than vi, which may
  742.         become annoying at low baud rates.  Setting terse mode will
  743.         suppress many of these.  (B)
  744.  
  745.     timeoutlen  To resolve the ambiguity between a user-pressed
  746.         ESCape key and an ESC character that is part of a function
  747.         key sequence, vile will wait for a short time after seeing
  748.         an ESC, in order to check the next character of input.  The
  749.         waiting time is specified in milliseconds, and defaults to
  750.         500.  Users of fast local screens, like a local xterm, may
  751.         wish to reduce this to something like 50 for crisper
  752.         response to a user-pressed ESC.  (U)
  753.  
  754.     undolimit (ul) Sets a limit on how many undoable buffer-changing
  755.         commands will be saved.  If set to 0, there is no limit,
  756.         and all changes are undoable.  The default value is 10. (B)
  757.  
  758.     view    View the file only.  No changes are permitted.  This is set
  759.         automatically for the output of shell commands.  (B)
  760.  
  761.     wrapmargin (wm) Implements vi's auto-wrap mode.  If nonzero, the wrap-
  762.         margin specifies the number of columns on the screen's right
  763.         margin to reserve before breaking the input lines on a space.
  764.         (B)
  765.  
  766.     wrapscan (ws) Text searches will continue from past the bottom of
  767.         the file to the top, and vice-versa.  (B)
  768.  
  769.     wrapwords (ww) Similar to vi's auto-wrap mode.  While inserting,
  770.         words are moved to the next line if the current line gets
  771.         too long.  Unlike vi, wrapping is only attempted when a
  772.         space is typed. (B)
  773.  
  774. Command History
  775. ---------------
  776.  
  777.     You may scroll through the list of previous replies to the :-prompt by
  778.     typing up or down arrows (if your configuration supports it).  More
  779.     generally, vile recognizes the any key bound to the up/down line
  780.     commands.
  781.  
  782. Special Character Expansion
  783. ---------------------------
  784.  
  785.     As in vi, the % and # characters typed while responding to a prompt
  786.     will expand to the current or "alternate" filename.  In addition,
  787.     the colon character (":") expands to the identifier name under the
  788.     cursor.  Expansion of ! to the last command run is not implemented.
  789.     The expansion can be suppressed by prefixing with a '\'.
  790.  
  791. Key Rebinding
  792. -------------
  793.  
  794.     There is a key rebinding facility (if vile is built to include it),
  795.     which is invoked as follows.  One must know the "english" name for the
  796.     command being rebound.  Use ":describe-bindings" or ":apropos string"
  797.     to find englishnames containing "string".  Then use the command:
  798.         ":bind-key englishname keyseq"
  799.     where keyseq is the exact keyboard sequence (i.e. single character,
  800.     or ^X or ^A followed by a single character) to which the
  801.     command should be bound.  In a .vilerc file, keyseq can be either
  802.     the literal sequence, or the printable representation of the
  803.     sequence, e.g. ^A-a or ^X-S.   (A summary of how key-sequences can
  804.     be represented appears at the end of this section.)
  805.  
  806.     Commands can be bound to function keys, which are either regular
  807.     ASCII characters with the eighth bit (0x80) bit set, or else ANSI
  808.     escape sequences of the form "ESC [ c" or "ESC O c".  Thus the ANSI
  809.     up-arrow key, which produces "ESC [ A" is bindable as 'FN-A' (and
  810.     is bound to "previous-line" by default), and the 4 ANSI function
  811.     keys, which produce "ESC O P" through "ESC O S" (and sometimes
  812.     more) are bound to 'FN-P', 'FN-Q', 'FN-R', and 'FN-S'.  If your
  813.     terminal can generate characters with the eighth bit set (sometimes
  814.     called a "meta" key), then FN-c can be bound to "meta-c".
  815.  
  816.     Any "function" key is also available on using the '#' prefix. 
  817.     Entering the sequence "# A" is equivalent to hitting the ANSI
  818.     up-arrow in the above paragraph, and hitting "# 3" will execute
  819.     whatever is bound to 'FN-3' (which is "execute-macro-3" by default. 
  820.     (The '#' key itself can be rebound -- it is represented by the
  821.     command name "function-prefix".)
  822.  
  823.     Examples:
  824.      To cause the / and ? commands to perform incremental
  825.       searches, use:
  826.         bind-key incremental-search /
  827.         bind-key reverse-incremental-search ?
  828.      To make ^N and ^P switch windows instead of cause motion by lines,
  829.        try:
  830.         bind-key next-window ^N
  831.         bind-key previous-window ^P
  832.      To cause the space bar to move forward by pages, as in the "more"
  833.       command, use:
  834.         bind-key next-page <sp>
  835.  
  836.     (Space and tab can be represented with the strings: "<sp>" and 
  837.     "<tab>".)  The englishname "rebind-key" is synonymous with "bind-key".
  838.  
  839.     Note that even the ^A and ^X prefix characters can be rebound, using
  840.     the dummy functions "cntl_a-prefix" and "cntl_x-prefix".
  841.  
  842.     Note that when interactive, ^A and ^X are typed using the control
  843.     key.  In a file, however, they can be either a caret (^) followed
  844.     by a letter, or the literal control key.  In the latter case you
  845.     would not use the '-' separator.  So ^A-x as four distinct
  846.     characters could also be entered as ^Ax, which would only be two
  847.     characters.
  848.  
  849.     Characters can be entered in hex as well, in the form 0xNN, where
  850.     NN is exactly two hex digits.  So if you know the hex value for
  851.     a key, you can bind to it like:
  852.         bind-key next-window ^A-0x94
  853.     or
  854.         bind-key next-window FN-0x14
  855.     [ These two are equivalent, since the "FN-" prefix simply sets the
  856.     0x80 bit. ]
  857.  
  858.     Function key bindings are available in insert mode, as well as
  859.     in command mode.  (But only via the "meta bit" or ANSI ESC sequence
  860.     form -- the '#' prefix will not work in insert mode.)  So the
  861.     following macro will work corrently in both command and insert
  862.     modes:
  863.  
  864.         15 store-macro
  865.             insert-string "fprintf(stderr, \""
  866.             set-named-mark z
  867.             insert-string "\\n\");\n"
  868.             goto-named-mark-exact z
  869.             ; enter insert mode if we weren't already there
  870.             ~if &seq $mode "command"
  871.                 insert-chars
  872.             ~endif
  873.         ~endm
  874.         ; bind to Meta-f
  875.         bind-key execute-macro-15 FN-f
  876.  
  877.  
  878.     :map 
  879.     ----
  880.     The vi "map" command is available in a restricted form.  The sequence
  881.     being mapped can only be a single valid bindable vile key-sequence,
  882.     like any single character, or ^A or ^X or "FN-" followed by a
  883.     single character.  The other limitation is that although mappings
  884.     can be nested, there is currently NO way for vile to detect infinite
  885.     recursion, and serious consequences (including data loss) may
  886.     result if mapping are set up in an infinite loop.  The key being
  887.     bound to may be specified in any of the literal or printable ways
  888.     mentioned above.  The sequence that map should generate must be
  889.     entered literally -- as in real vi, there is no translation of ^
  890.     to control characters.  To enter control characters into a .vilerc
  891.     file, use the ^V escaping mechanism.
  892.  
  893.     The :map! and :abbr commands have not yet been implemented, but
  894.     as mentioned above, function key ("FN-") bindings work in input
  895.     mode as well as command mode.
  896.  
  897.  
  898.     Syntax for key-sequences:
  899.     -------------------------
  900.     To summarize, a key-sequence being bound to or mapped is specified
  901.     with:
  902.         1) an optional prefix, like this:
  903.             ^A-    (three chars)
  904.             ^X-    (three chars)
  905.             ^A    (one char)
  906.             ^X    (one char)
  907.  
  908.         2) followed by an optional "function" or "meta" prefix:
  909.             FN-    (three chars)
  910.             M-    (two chars)
  911.             (these two are synonymous)
  912.  
  913.         3) followed by a character, like this:
  914.             C    (one char)
  915.             ^C    (one char)
  916.             ^C    (two chars)
  917.             \NNN    (max of four chars, where NNN are octal digits)
  918.             \xNNN    (max of five chars, where NNN are hex digits)
  919.             \n,\r,\t,\b,\f (two chars each, usual meanings)
  920.             \e    (two chars, means ESC)
  921.             <tab>    (five chars)
  922.             <sp>    (four chars)
  923.  
  924.  
  925.     (The "one char" control character entries in the above table are
  926.     represented in this help file as two printable characters, to
  927.     ensure they are not deleted by mailers or file transfer programs.)
  928.  
  929.  
  930. Special "Terminal" Key Rebinding
  931. --------------------------------
  932.  
  933.     In addition to the above binding mechanism for vile commands, other
  934.     keystrokes to the editor are rebindable using the "set-terminal"
  935.     command.  These keystrokes are mostly derived directly from the
  936.     user's tty settings on entering the editor, but there are a couple
  937.     of additions related to command and filename completion.
  938.  
  939.     The values of these characters can be shown with the "show-terminal"
  940.     command, and can be changed with the "set-terminal" command.
  941.  
  942.                 Default value        Typical value
  943.     -------------------------------------------------------------
  944.     backspace        from tty settings    (DEL or ^H)
  945.     interrupt        from tty settings    (^C or DEL)
  946.     line-kill        from tty settings    (^U or @)
  947.     name-complete        <tab>
  948.     quote-next        from tty settings    (^V)
  949.     start-output        from tty settings    (^Q)
  950.     stop-output        from tty settings    (^S)
  951.     suspend            from tty settings    (^Z)
  952.     test-completions    ?
  953.     word-kill        from tty settings    (^W)
  954.  
  955. Macros
  956. ------
  957.  
  958.     The first type of macro in vile, is for temporary, quick macro
  959.     usage, and lets you record a macro as you execute vile commands.
  960.     You can then replay those keystrokes with a single key. 
  961.  
  962.     ^X-(    Begin recording a keyboard macro.  The keystrokes you type
  963.         are recorded, until you use ^X-).
  964.     ^X-)    Finish recording a keyboard macro.
  965.     ^X-&    Execute the keyboard macro.
  966.  
  967.     The vi '@' command is present as well, and can be used to execute
  968.     the contents of a named register as if it were entered at the
  969.     keyboard.  To make this more useful, the "load-register" command
  970.     will allow preloading a named register, from .vilerc file.  For
  971.     example:
  972.         use-register a load-register ihello^[
  973.     will load register 'a' with a command to insert the word "hello".
  974.     (The ^[ should be a real ESC character, entered by preceding it
  975.     with ^V.)  A better example, is this:
  976.         use-register w load-register ":!chmod +w %^M:w^M"
  977.     which makes the current file writable and writes it.  (Again, use
  978.     ^V to get the CR characters into the .vilerc file.)
  979.  
  980. Programmed macros
  981. -----------------
  982.  
  983.     Vile can also be extended (though I confess this has only been
  984.     lightly used or tested) by defining macros and then binding
  985.     execution of those macros to key sequences.  For example, if
  986.     the following lines appear in a .vilerc file:
  987.         1 store-macro
  988.          5 delete-til next-word
  989.         ~endm
  990.         bind-key execute-macro-1 ^A-1
  991.     then when ^A-1 is executed, 5 words will be deleted.  The "-til"
  992.     suffix on an englishname denotes that it is a vi operator style
  993.     command, and expects to be followed by a motion command.  Also,
  994.         1 store-macro
  995.          5 delete-til lines
  996.         ~endm
  997.     would be the equivalent of "5dd" since the word "lines" represents
  998.     the stuttered 'dd' style of operation.
  999.  
  1000.     There are some built-in variables that can be used in macros to gain
  1001.     access to parts of vile status, and parts of the current buffer. 
  1002.     Built-in variables are accessed by name, prefixed with the '$'
  1003.     character.  There are two types of built-in variables (the environment
  1004.     variables, and mode values).  The environment variables are:
  1005.  
  1006.     $cbufname    current buffer name
  1007.     $cfilname    current file name
  1008.     $char        character under the cursor
  1009.     $curcol        current column position of cursor
  1010.     $curline    current line in file
  1011.     $cwd        current directory
  1012.     $cwline        line offset in current window
  1013.     $debug        macro debugging -- set true for line by line tracing
  1014.     $directory    controls location of temp-files
  1015.     $discmd        display commands on command line
  1016.     $disinp        display command line input characters
  1017.     $font        current font name (X version only)
  1018.     $identifier    current punctuated word
  1019.     $kill        some of the kill register        (read only)
  1020.     $lastkey    last keyboard char struck
  1021.     $line        text of current line
  1022.     $llength    length of current line            (read only)
  1023.     $match        last matched magic pattern        (read only)
  1024.     $mode        current mode ("command","insert","overwrite") (read o.)
  1025.     $pagelen    number of screen lines in use by editor
  1026.     $pagewid    current screen width
  1027.     $palette    current palette string
  1028.     $pathname    current path-like word
  1029.     $pending    typeahead pending flag            (read only)
  1030.     $progname    returns current prog name - "vile"    (read-only)
  1031.     $qidentifier    current qualified name (as with C++ ::)
  1032.     $replace    replacement pattern
  1033.     $search        search pattern
  1034.     $seed        current random number seed
  1035.     $sres        current screen resolution
  1036.     $status        returns the status of the last command
  1037.     $terse        be terse -- suppress messages
  1038.     $tpause        length to pause for paren matching (pc versions)
  1039.     $version    current version number            (read-only)
  1040.     $wline        number of lines in current window
  1041.     $word        current "word"
  1042.  
  1043.     In addition to the environment variables, you may set and use the
  1044.     values of the editor modes (i.e., universal modes, buffer-only modes or
  1045.     window-only modes), e.g., "setv $dos=true".  The global values of the
  1046.     editor modes are not visible to the expression evaluator.
  1047.  
  1048.     User-defined variables can also be set and used; their names are
  1049.     prefixed with the '%' character.
  1050.  
  1051.     Response variables (a '@' followed by a prompt-string) cause vile to
  1052.     prompt for input with the given prompt-string.
  1053.  
  1054.     Buffer variables (a '#' followed by a buffer name) return the current
  1055.     line of the specified buffer, automatically setting the position to the
  1056.     next line.
  1057.  
  1058.     There are also functions available, which can act on those variables,
  1059.     or on hard-coded values.  Operations are expressed in prefix notation,
  1060.     so to add to numbers you would say "&add 3 5".
  1061.  
  1062.     func    no. of
  1063.     name    args
  1064.     --------------
  1065.     &add    2    add two numbers together
  1066.     &sub    2    subtraction
  1067.     &tim    2    multiplication
  1068.     &div    2    division
  1069.     &mod    2    modulus
  1070.     &neg    1    negate
  1071.     &cat    2    concatenate string
  1072.     &lef    2    left string(string, len)
  1073.     &rig    2    right string(string, pos)
  1074.     &mid    3    mid string(string, pos, len)
  1075.     ¬    1    logical not
  1076.     &equ    2    logical equality
  1077.     &les    2    logical less than
  1078.     &gre    2    logical greater than
  1079.     &seq    2    string logical equality check
  1080.     &sle    2    string logical less than
  1081.     &sgr    2    string logical greater than
  1082.     &ind    1    evaluate indirect value
  1083.     &and    2    logical and
  1084.     &or     2    logical or
  1085.     &len    1    string length
  1086.     &upp    1    uppercase string
  1087.     &low    1    lower case string
  1088.     &tru    1    Truth of the universe logical test
  1089.     &asc    1    char to integer conversion
  1090.     &chr    1    integer to char conversion
  1091.     >k    0    get 1 character
  1092.     &rnd    1    get a random number from 1 to n
  1093.     &abs    1    absolute value of a number
  1094.     &sin    2    find the index of second string in first
  1095.     &env    1    retrieve a system environment var
  1096.     &bin    1    lookup what function name is bound to key
  1097.     &rd    1    is a file readable
  1098.     &wr    1    is a file writable
  1099.  
  1100.     To prevent vile from thinking that a failed command is an error in
  1101.     the macro, you can put "~force" in front of it.  So, to write a
  1102.     macro which will run the "man" command on the identifier under the
  1103.     cursor, where you don't really consider it an error if the command
  1104.     fails, you might use:
  1105.  
  1106.         9 store-macro
  1107.             ~force shell-command &cat "man " $identifier
  1108.         ~endm
  1109.         bind-key execute-macro-9 ^X-m
  1110.  
  1111.     The "screen-search-forward" command could be re-implemented as:
  1112.         10 store-macro
  1113.             ~force search-forward $identifier
  1114.         ~endm
  1115.         bind-key execute-macro-10 ^X-/
  1116.  
  1117.     And the "screen-search-pattern-grab" command, normally bound to
  1118.     ^A-/, could be implemented with:
  1119.         11 store-macro
  1120.             set-variable $search $identifier
  1121.             write-message &cat "Search pattern is now " $search
  1122.         ~endm
  1123.         bind-key execute-macro-11 ^A-/
  1124.  
  1125.     A variation, which will not find the identifier if it is a substring
  1126.     of another word, is:
  1127.         12 store-macro
  1128.             ~force search-forward &cat "\\<" &cat $identifier "\\>"
  1129.         ~endm
  1130.     This works by surrounding the string with the \< and \> meta-
  1131.     characters.
  1132.  
  1133.  
  1134.     Here's another example, which finds C++ qualified identifiers, and
  1135.     uses them for a tag lookup:
  1136.         * Implement  ^A-^] for qualified-name tag lookup
  1137.         24 store-macro
  1138.             backward-character
  1139.             set-variable %osearch $search
  1140.             search-forward "^[a-zA-Z_][a-zA-Z0-9_:]*"
  1141.             set-variable $search %osearch
  1142.             set-variable %osearch ""
  1143.             write-message &cat "Tag pattern is now " $match
  1144.             ~force find-tag $match
  1145.         ~endm
  1146.         bind-key execute-macro-24 ^A-^]
  1147.     (The "backward-character" is needed because "search-forward" will
  1148.     always skip the cursor position when scanning, so as to always find
  1149.     the next occurrence.  The user variable %osearch is used so as not
  1150.     to disturb the search string.)
  1151.  
  1152.     Primitive flow-of-control within a macro may be obtained with
  1153.     certain directives.  Macro directives start with a "~" and include:
  1154.  
  1155.     ~if cond    conditional execution
  1156.     ~else
  1157.     ~endif
  1158.     ~return        Return (terminating current macro)
  1159.     ~goto *label    Jump to a label in the current macro
  1160.     ~force        Force macro to continue...even if command fails
  1161.     ~while cond    Execute a loop if the condition is true
  1162.     ~break
  1163.     ~endwhile
  1164.     
  1165.     ~endm        End a macro
  1166.  
  1167.     Line Labels begin with a "*" as the first nonblank char, like:
  1168.  
  1169.     *LBL01
  1170.  
  1171.     Note that for simple key-remappings, binding is often preferable
  1172.     to creating a macro.  Some people prefer using lower-case 'g' to
  1173.     as an equivalent to 'G', to goto a specific line.  If done as a
  1174.     macro, like this:
  1175.  
  1176.         3 store-macro
  1177.             goto-line
  1178.         ~endm
  1179.         bind-key execute-macro-3 g
  1180.  
  1181.     then both g and G go to the end of the file, but whereas 1000G goes
  1182.     to line 1000, 1000g goes to the end of the file 1000 times.  It is
  1183.     easier (and works correctly) to do:
  1184.  
  1185.         bind-key goto-line g
  1186.  
  1187.     A couple more examples of slightly more complex macros:
  1188.     They cause a jump to the next (or previous) line of the same (or
  1189.     lesser) indent, skipping over empty lines.  (Thanks to MIURA Masahiro)
  1190.  
  1191.     ; macro 1 - back to the line of same indent
  1192.     ;
  1193.     1 store-macro
  1194.         first-nonwhite
  1195.         set-variable %indlev $curcol
  1196.         ~force back-line-at-bol
  1197.         ~if &equ $llength 0
  1198.             ~goto L1
  1199.         ~endif
  1200.         ~while &les %indlev $curcol
  1201.             *L1
  1202.             ~force back-line-at-bol
  1203.             ~if &seq $status "FALSE"
  1204.                 ~return
  1205.             ~endif
  1206.             ~if &equ $llength 0
  1207.                 ~goto L1
  1208.             ~endif
  1209.         ~endwhile
  1210.     ~endm
  1211.     bind-key execute-macro-1 ^X-[
  1212.  
  1213.     ; macro 2 - forward to the line of same indent
  1214.     ;
  1215.     2 store-macro
  1216.         first-nonwhite
  1217.         set-variable %indlev $curcol
  1218.         ~force down-line-at-bol
  1219.         ~if &equ $llength 0
  1220.             ~goto L2
  1221.         ~endif
  1222.         ~while &les %indlev $curcol
  1223.             *L2
  1224.             ~force down-line-at-bol
  1225.             ~if &seq $status "FALSE"
  1226.                 ~return
  1227.             ~endif
  1228.             ~if &equ $llength 0
  1229.                 ~goto L2
  1230.             ~endif
  1231.         ~endwhile
  1232.     ~endm
  1233.     bind-key execute-macro-2 ^X-]
  1234.  
  1235.  
  1236. Regular Expressions
  1237. -------------------
  1238.  
  1239.     Searches use regular expressions, which, as in vi, may be magic
  1240.     by default or not.
  1241.  
  1242.     vile introduces some new magic metacharacters.
  1243.  
  1244.     The code that implements the expressions is based directly on
  1245.     Henry Spencer's regexp code.  Quoting from the original man page:
  1246.  
  1247.     [For ease of reference, the metacharacters are noted in the margin.)
  1248.  
  1249.    \|    "A regular expression is zero or more branches, separated by `\|'. 
  1250.     It matches anything that matches one of the branches."
  1251.  
  1252.     "A branch is zero or more pieces, concatenated.  It matches a match
  1253.     for the first, followed by a match for the second, etc."
  1254.  
  1255.     "A piece is an atom possibly followed by `*', `\+', or `\?'.  An atom
  1256.    *    followed by `*' matches a sequence of 0 or more matches of the
  1257.    +    atom.  An atom followed by `\+' matches a sequence of 1 or more
  1258.    \?    matches of the atom.  An atom followed by `\?' matches a match of
  1259.     the atom, or the null string." [i.e., `\?' matches 0 or 1 occurrences]
  1260.  
  1261.  \( \)    "An atom is a regular expression in backslashed parentheses
  1262.     (matching a match for the regular expression), a range (see below),
  1263.   . ^    `.' (matching any single character), `^' (matching the null string
  1264.    $    at the beginning of the input string), `$' (matching the null
  1265.    \c    string at the end of the input string), a `\' followed by a single
  1266.    c    character (matching that character), or a single character with no
  1267.     other significance (matching that character)."
  1268.     
  1269.  \< \>    In addition, vile atoms may be: \< and \>, which match the
  1270.  \s \S    beginning and end of a "word", \s and \S, which match characters of
  1271.  \w \W    whitespace and "darkspace", \w and \W, which match alphanumerics
  1272.  \d \D    (including '_') and non-alphanumerics, \d and \D, which match
  1273.  \p \P    digits and non-digits, and \p and \P, which match printable and
  1274.     non-printable characters (whitespace is printable).
  1275.  
  1276.  [ ]    "A range is a sequence of characters enclosed in `[]'.  It normally
  1277.     matches any single character from the sequence.  If the sequence
  1278.     begins with `^', it matches any single character not from the
  1279.     rest of the sequence.  If two characters in the sequence are
  1280.     separated by `-', this is shorthand for the full list of ASCII
  1281.     characters between them (e.g.  `[0-9]' matches any decimal digit). 
  1282.     To include a literal `]' in the sequence, make it the first
  1283.     character (following a possible `^').  To include a literal `-',
  1284.     make it the first or last character."
  1285.  
  1286.     Additionally for vile, if "ignorecase" is set, then all literal
  1287.     matches, including those in character classes, are done without
  1288.     regard to upper and lower case.
  1289.  
  1290.     In magic mode, the following set of metacharacters
  1291.     must be preceded by '\' to hide their special meaning:
  1292.         * [ . ^ $
  1293.     These characters are special if they _are_ preceded with a '\':
  1294.         ? + ( ) | < >
  1295.  
  1296.     If magic mode is _not_ on, only ^ and $ are special if not escaped. 
  1297.     All of the following must be preceded with a '\' to be special,
  1298.     otherwise they are taken literally:
  1299.         ? + ( ) | * [ . < >
  1300.  
  1301.     Replacement subexpressions are supported when substituting.  That
  1302.     is, if part of an expression is contained in \( and \), then the
  1303.     part of the matched text in between those symbols will be
  1304.  \1 \9    substituted for an occurrence of \1 in the replacement pattern.  Up
  1305.     to 9 such substitutions can be made.  The special symbol & will
  1306.   &    substitute for the entire match string.
  1307.  
  1308.     The replacement part of the substitution may also contain the
  1309.  \U \L    special sequences \U and \L, which cause the replacement to be
  1310.  \E    forced to uppercase or lowercase until a terminating \E is found;
  1311.  \u \l    \u and \l, which force the case of a single character; and \b,
  1312.  \bfrtn    \f, \r, \t, \n, which insert the usual ASCII character.
  1313.     Note that vile mimics perl's handling of \u\L\1\E instead of vi's. 
  1314.     Given :s/\(abc\)/\u\L\1\E/ vi will replace with "abc" whereas vile
  1315.     and perl will replace with "Abc".  This is somewhat more useful for
  1316.     capitalizing words.
  1317.  
  1318. Command files
  1319. -------------
  1320.  
  1321.     On startup (in the absence of '@' arguments -- see Invocation
  1322.     below), vile will attempt to read the file ".vilerc" in the current
  1323.     directory, and then in $HOME, and will execute the commands found
  1324.     therein.  It is possible to nest such executions.  For example, you
  1325.     might keep your general default settings in your home directory,
  1326.     and put the following lines in a .vilerc in a directory in which
  1327.     you prefer tabs be set to 4 spaces:
  1328.  
  1329.         source "$HOME/.vilerc"
  1330.         set tabstop 8
  1331.  
  1332.     The quotes surrounding the filename part are necessary to
  1333.     protect the name from interpretation as a vile variable. 
  1334.  
  1335.     Files can be executed at any time with the ":source" (or
  1336.     ":execute-file") command.  There are (mostly untested) control
  1337.     structures available, such as ~while, ~if, etc.  Refer to the
  1338.     source code for more information.
  1339.  
  1340.     Nesting of source'd files is limited to a depth of ten, to prevent
  1341.     infinite recursion.
  1342.  
  1343.     The ';' character can be used as a comment character in command
  1344.     files.
  1345.  
  1346. Invocation
  1347. ----------
  1348.  
  1349.     If set in the environment, the variable VILEINIT is used as a set
  1350.     of vile commands to initialize the editor.  If unset, vile looks
  1351.     for files called "./.vilerc" and "$HOME/.vilerc, and executes the
  1352.     first one found.  As a not-very-useful example of a VILEINIT
  1353.     sequence, the following setting will exactly recreate the default
  1354.     (i.e. no VILEINIT variable) behavior:
  1355.  
  1356.         export VILEINIT
  1357.         VILEINIT="
  1358.         ~if &rd \"./.vilerc\"
  1359.             source \"./.vilerc\"
  1360.         ~else
  1361.             ~if &rd \"$HOME/.vilerc\"
  1362.                 source \"$HOME/.vilerc\"
  1363.             ~endif
  1364.         ~endif"
  1365.  
  1366.  
  1367.     The command line options are fairly straightforward.  Vile does not
  1368.     support running _any_ command after a '+', as does vi, but does
  1369.     support the commonly used '+400' to go to line 400 and '+/foo' to
  1370.     search for foo.  Command files (see below) can be explicitly
  1371.     executed on startup by prefixing them with the '@' character, as in
  1372.     "vile @mycmds file.c".  This will suppress the operation of VILEINIT
  1373.     and the .vilerc files.
  1374.  
  1375.     Use "vile -?" to get the usage message.
  1376.  
  1377. X Window System specifics:
  1378. -------------------------
  1379.  
  1380.     If you are using xvile, the following additions are available:
  1381.  
  1382.     Mouse buttons:
  1383.  
  1384.     1 -    Sets cursor position and the start of the selection.
  1385.         With any modifier, it will center the buffer at the cursor
  1386.         (this results in a primitive form of scrolling.)
  1387.         Motion with the button down will select text.
  1388.         Multiple clicks will expand the selection to cover
  1389.         words or the current line.
  1390.     2 -    Paste the current PRIMARY selection.  With a modifier, it
  1391.         pastes at the mouse position, otherwise it pastes at
  1392.         the text cursor position.
  1393.     3 -    Extends the current selection.
  1394.  
  1395.     Additional command line arguments:
  1396.  
  1397.     -f fontname    Font to use.
  1398.     -r         Use reverse video.
  1399.     -d display    Use an alternate display.
  1400.     -fg color    change foreground color (or -foreground)
  1401.     -bg color    change background color (or -background)
  1402.     -name name    change window name
  1403.     =geometry    change window dimensions
  1404.  
  1405.     X Resources:
  1406.  
  1407.     font        Font to use.
  1408.     geometry    Window dimensions.
  1409.     charClass    Character classes for multiple click selections.
  1410.             The format is identical to that of xterm(1).
  1411.     multiClickTime    How long between clicks (in milliseconds) to
  1412.             be accepted as a multi-click.
  1413.         reverseVideo    Foreground/background reversal.
  1414.     foreground    Foreground color.
  1415.     background    Background color.
  1416.  
  1417.     Changing the font on the fly:
  1418.  
  1419.     Use the ':setv' command to set the $font variable:
  1420.  
  1421.     : setv $font <fontname>
  1422.  
  1423. DOS specifics
  1424. -------------
  1425.  
  1426.     You can force vile into one of three screen modes: 25, 43 and 50
  1427.     lines.  It auto-senses, but can be overridden with a command
  1428.     line option: -2, -4, and -5 give 25, 43 and 50 lines respectively.
  1429.  
  1430.     If you shell out in 50 line mode, make sure you are in 50 line mode
  1431.     before you exit the dos shell, otherwise you end up with a 50 line
  1432.     edit window with only the top 25 displayed.
  1433.  
  1434.     The vile.rc file can be located in the same directory as your
  1435.     binary executable, since vile searches the PATH for this file.
  1436.  
  1437. Differences from vi
  1438. -------------------
  1439.  
  1440.     Of course, this really isn't vi.  Some of the following differences
  1441.     deserve changing, others do not.
  1442.  
  1443.     The parser for the ':' commands is not very vi-like.  For instance,
  1444.     ":e" will prompt you for a file name.  Most commands remember their
  1445.     last argument, and will present it as the default reply to their
  1446.     prompt. 
  1447.  
  1448.     The backspace, line kill, word kill, job control, etc.  characters
  1449.     are not rebindable.  They are, however, read from the tty settings
  1450.     on startup.
  1451.  
  1452.     There is no expansion of ! in filenames or shell escapes.  The
  1453.     command ":!!" does rerun the previous shell command.  Occurrences of
  1454.     '#' and '%' are recognized and expanded to the previous or current
  1455.     filename.  Other punctuation (e.g.  '~') may be expanded by your
  1456.     shell (sh, csh), since it is handed filenames for expansion if they
  1457.     contain any of these characters: * ? ~ [ ] $ { }
  1458.  
  1459.     Paragraph and section boundaries, for the {, }, [, and ] commands
  1460.     are configurable, but may not exactly match those in vi.  They
  1461.     are expressed via regular expressions.  The default regular expressions
  1462.     are quite complex, to support the traditional nroff and troff boundaries.
  1463.     If you are just editing code, you may want to replace them:
  1464.  
  1465.         ; set paragraph and section r.e.s for speed on C/C++/perl code.
  1466.         set paragraphs=^$
  1467.         set sections=^[{ ]
  1468.  
  1469.  
  1470.     The vi ":map!", and ":abbr" are not supported.
  1471.  
  1472.     There is no special lisp support.  But then, when was the last time
  1473.     you heard of a lisp programmer that used vi?
  1474.  
  1475.     Of course, ex and open mode aren't there.
  1476.  
  1477.     Most, but not all, of the word-motion-with-operator and end-of-line 
  1478.     anomalies have been recreated.  One missing anomaly: In vile, "dw"
  1479.     on the last word of a line ending in whitespace deletes the
  1480.     trailing whitespace.  Vi does not delete the whitespace. 
  1481.  
  1482.     In the real vi, the '_' command is a little-used motion command,
  1483.     which moves the cursor to the start of the Nth next line, where N
  1484.     is the argument given, less 1.  So '2_' takes you to the start of
  1485.     the next line.  Primarily intended for use in an operator context,
  1486.     as in "2d_", it is always exactly equivalent in those cases to
  1487.     "stuttering" the operator, as in "2dd".  Most people know about and
  1488.     use the stuttered form, so in vile, the '_' command is used by
  1489.     default for buffer history.  If the regular vi behavior is desired,
  1490.     put the following in the .vilerc file:
  1491.  
  1492.         bind-key whole-lines _
  1493.  
  1494. Sample .vilerc
  1495. --------------
  1496.  
  1497.     Here's a sample .vilerc, to help get you started with the
  1498.     syntax and style of vile macros:
  1499.  
  1500.     set autoindent
  1501.     set fillcol 75
  1502.     set cmode
  1503.     set c-tabstop 4
  1504.     
  1505.     ; sitting on a brace, run the C code block through indent
  1506.     1 store-macro
  1507.         write-file 
  1508.         filter-til goto-matching-fence "indent -st"
  1509.     ~endm
  1510.  
  1511.     
  1512.     ; format the current paragraph
  1513.     2 store-macro
  1514.         previous-paragraph 
  1515.         filter-til next-paragraph "/usr/ucb/fmt"
  1516.     ~endm
  1517.     
  1518.     ; put 'fprintf(stderr,"\n");" into the file, and
  1519.     ; position the cursor to add to the string
  1520.     3 store-macro
  1521.         ~force next-line
  1522.         beginning-of-line
  1523.         insert-string "fprintf(stderr, \"\\n\");\n"
  1524.         ; six back, because it counts the newline
  1525.         6 backward-character
  1526.         insert-chars
  1527.     ~endm
  1528.     
  1529.     ; insert '> ' in front of every line from here til the end
  1530.     ; (this works because without argument, the default action 
  1531.     ; for "goto-line" is to go to the end of file.
  1532.     4 store-macro
  1533.         substitute-til goto-line "^" "> "
  1534.     ~endm
  1535.  
  1536.     ; the next three reproduce vile version three behavior
  1537.     bind-key next-window ^N
  1538.     bind-key previous-window ^P
  1539.     bind-key split-current-window ^T
  1540.     
  1541.     bind-key execute-macro-1 ^A-C
  1542.     bind-key execute-macro-2 ^A-F
  1543.     bind-key execute-macro-3 ^A-K
  1544.     bind-key execute-macro-4 ^A-M
  1545.  
  1546. Notes on TERM types and Scrolling
  1547. ---------------------------------
  1548.  
  1549.     vile will determine the window size in one of three ways: first it
  1550.     will ask the tty driver (using a TIOCGWINSZ ioctl call under UNIX),
  1551.     then it will use the LINES and COLUMNS environment variables, and
  1552.     as a last resort will use the size specified in the TERMCAP entry
  1553.     corresponding to the TERM variable.  In addition, vile will attempt
  1554.     to support the SIGWINCH signal, which allows it to track changes to
  1555.     the size of the window in which it is running.
  1556.  
  1557.     If scrolling is really slow, or really ugly (the status line hops
  1558.     around a lot), and you're using a vt102 or compatible terminal that
  1559.     you think should be able to scroll okay, then the problem is almost
  1560.     certainly your termcap entry, which probably doesn't describe
  1561.     scrolling regions adequately.  Most standard termcap entries are
  1562.     insufficient.  The standard "xterm" entry on many systems falls
  1563.     into this category, and vile contains code that, as a special case,
  1564.     will augment an "xterm" entry with the codes needed for scrolling
  1565.     regions.
  1566.  
  1567.     In any case, here's a termcap entry that should work:
  1568.  
  1569.         dy|vt102|vt-102|dec vt102:\
  1570.             :do=^J:co#80:li#24:cl=50\E[;H\E[2J:\
  1571.             :le=^H:bs:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:\
  1572.             :ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:\
  1573.             :md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:is=\E[1;24r\E[24;1H:\
  1574.             :rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\
  1575.             :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\
  1576.             :ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=5\EM:vt#3:\
  1577.             :sc=\E7:rc=\E8:cs=\E[%i%d;%dr:vs=\E[?7l:ve=\E[?7h:
  1578.  
  1579.     The crucial entries are cs and sr -- without both of them,
  1580.     vile will attempt to use dl and al, and will scroll by
  1581.     deleting and inserting a block of lines, giving the ugly
  1582.     behavior you see.  If you define PRETTIER_SCROLL when building
  1583.     vile, it will alternately delete and insert lines, instead of
  1584.     deleting them all and then inserting them all.  This makes it
  1585.     look a _little_ better, but it's slower.
  1586.  
  1587.     ( The terminfo entry equivalent to the above termcap entry:
  1588.  
  1589.     vt102|vt-102|dec vt102,
  1590.         xon,
  1591.         cols#80, lines#24, vt#3,
  1592.         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
  1593.         clear=\E[;H\E[2J$<50>, cnorm=\E[?7h, cr=\r,
  1594.         csr=\E[%i%p1%d;%p2%dr, cub1=\b, cud1=\n,
  1595.         cuf1=\E[C$<2>, cup=\E[%i%p1%d;%p2%dH$<5>,
  1596.         cuu1=\E[A$<2>, cvvis=\E[?7l, ed=\E[J$<50>,
  1597.         el=\E[K$<3>, home=\E[H, ht=\t, ind=\n,
  1598.         is2=\E[1;24r\E[24;1H, kbs=\b, kcub1=\EOD, kcud1=\EOB,
  1599.         kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
  1600.         kf4=\EOS, rc=\E8, rev=\E[7m$<2>, ri=\EM$<5>,
  1601.         rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>,
  1602.         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
  1603.         sgr0=\E[m$<2>, smkx=\E[?1h\E=, smso=\E[7m$<2>,
  1604.         smul=\E[4m$<2>,
  1605.     )
  1606.  
  1607. Credits
  1608. -------
  1609.  
  1610.     This code has been written by a _lot_ of people.  Names appearing
  1611.     within comments in the micro-Emacs source code are: Dave
  1612.     Conroy, Daniel Lawrence, John Gamble, Roger Ove, Dana Hoggatt,
  1613.     Jon Reid, Steve Wilhite, George Jones, Adam Fritz, D.R.Banks,
  1614.     Bob McNamara.  Tom Dickey has contributed many code improvements
  1615.     and features, and has stabilized vile on both VMS and DOS.  Some of
  1616.     the "ex" code is by Steve Kirkendall, author of the vi clone called
  1617.     "elvis".  The regular expression code and documentation is by Henry
  1618.     Spencer.  The sample .vilerc was created by Dave Lemke; he also
  1619.     contributed code for new features (native X support) and bug fixes. 
  1620.     Eric Krohn has done some excellent testing and enhancement.  The
  1621.     initial changes to create vile from micro-Emacs were all done by
  1622.     Paul Fox, who can be reached at pgf@cayman.com.  (By the way, this
  1623.     is not the same Paul Fox that did the Crisp editor.)
  1624.  
  1625.