home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / editors / vi_cheat.arj / VI_CHEAT.TXT
Text File  |  1991-05-17  |  32KB  |  619 lines

  1.  
  2.  
  3.     ////////////////////////////////////////////////////////////////////////
  4.     /                         VI REFERENCE (by maart@cs.vu.nl)             /
  5.     ////////////////////////////////////////////////////////////////////////
  6.  
  7.     Warning: some vi versions don't support the more esoteric features
  8.     described in this document.  You can edit/redistribute this document
  9.     freely, as long as you don't make false claims on original authorship.
  10.  
  11.     default values          : 1
  12.     ^X                      : <ctrl>x
  13.     [*]                     : `*' is optional
  14.     <*>                     : `*' must not be taken literally
  15.     <sp>                    : space
  16.     <cr>                    : carriage return
  17.     <lf>                    : linefeed
  18.     <ht>                    : horizontal tab
  19.     <esc>                   : escape
  20.     <erase>                 : your erase character
  21.     <kill>                  : your kill character
  22.     <intr>                  : your interrupt character
  23.     <a-z>                   : an element in the range
  24.     N                       : number (`*' = allowed, `-' = not appropriate)
  25.     CHAR                    : char unequal to <ht>|<sp>
  26.     WORD                    : word followed by <ht>|<sp>|<lf>
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.     /////////////////
  34.     / move commands /
  35.     /////////////////
  36.  
  37.      N | Command            | Meaning
  38.     ---+--------------------+-----------------------------------------------
  39.      * | h | ^H | <erase>   | <*> chars to the left.
  40.      * | j | <lf> | ^N      | <*> lines downward.
  41.      * | l | <sp>           | <*> chars to the right.
  42.      * | k | ^P             | <*> lines upward.
  43.      * | $                  | To the end of line <*> from the cursor.
  44.      - | ^                  | To the first CHAR of the line.
  45.      * | _                  | To the first CHAR <*> - 1 lines lower.
  46.      * | -                  | To the first CHAR <*> lines higher.
  47.      * | + | <cr>           | To the first CHAR <*> lines lower.
  48.      - | 0                  | To the first char of the line.
  49.      * | |                  | To column <*> (<ht>: only to the endpoint).
  50.      * | f<char>            | <*> <char>s to the right (find).
  51.      * | t<char>            | Till before <*> <char>s to the right.
  52.      * | F<char>            | <*> <char>s to the left.
  53.      * | T<char>            | Till after <*> <char>s to the left.
  54.      * | ;                  | Repeat latest `f'|`t'|`F'|`T' <*> times.
  55.      * | ,                  | Idem in opposite direction.
  56.      * | w                  | <*> words forward.
  57.      * | W                  | <*> WORDS forward.
  58.      * | b                  | <*> words backward.
  59.      * | B                  | <*> WORDS backward.
  60.      * | e                  | To the end of word <*> forward.
  61.      * | E                  | To the end of WORD <*> forward.
  62.      * | G                  | Go to line <*> (default EOF).
  63.      * | H                  | To line <*> from top of the screen (home).
  64.      * | L                  | To line <*> from bottom of the screen (last).
  65.      - | M                  | To the middle line of the screen.
  66.      * | )                  | <*> sentences forward.
  67.      * | (                  | <*> sentences backward.
  68.      * | }                  | <*> paragraphs forward.
  69.      * | {                  | <*> paragraphs backward.
  70.      - | ]]                 | To the next section (default EOF).
  71.      - | [[                 | To the previous section (default begin of file).
  72.      - | `<a-z>             | To the mark.
  73.      - | '<a-z>             | To the first CHAR of the line with the mark.
  74.      - | ``                 | To the cursor position before the latest absolute
  75.                             | jump (of which are examples `/' and `G').
  76.      - | ''                 | To the first CHAR of the line on which the cursor
  77.                             | was placed before the latest absolute jump.
  78.      - | /<string>          | To the next occurrence of <string>.
  79.      - | ?<string>          | To the previous occurrence of <string>.
  80.      - | n                  | Repeat latest `/'|`?' (next).
  81.      - | N                  | Idem in opposite direction.
  82.      - | %                  | Find the next bracket and go to its match
  83.                             | (also with `{'|`}' and `['|`]').
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.     /////////////////////////
  91.     / searching (see above) /
  92.     /////////////////////////
  93.  
  94.     :ta <name>              | Search in the tags file where <name> is
  95.                             | defined (file, line), and go to it.
  96.     ^]                      | Use the name under the cursor in a `:ta' command.
  97.     :[x,y]g/<string>/<cmd>  | Search globally [from line x to y] for <string>
  98.                             | and execute the `ex' <cmd> on each occurrence.
  99.     :[x,y]v/<string>/<cmd>  | Execute <cmd> on the lines that don't match.
  100.  
  101.     ///////////////////
  102.     / undoing changes /
  103.     ///////////////////
  104.  
  105.     u                       | Undo the latest change.
  106.     U                       | Undo all changes on a line, while not having
  107.                             | moved off it (unfortunately).
  108.     :q!                     | Quit vi without writing.
  109.     :e!                     | Re-edit a messed-up file.
  110.  
  111.     ///////////////////////////////////
  112.     / appending text (end with <esc>) /
  113.     ///////////////////////////////////
  114.  
  115.      * | a                  | <*> times after the cursor.
  116.      * | A                  | <*> times at the end of line.
  117.      * | i                  | <*> times before the cursor (insert).
  118.      * | I                  | <*> times before the first CHAR of the line
  119.      * | o                  | On a new line below the current (open).
  120.                             | The count is only useful on a slow terminal.
  121.      * | O                  | On a new line above the current.
  122.                             | The count is only useful on a slow terminal.
  123.      * | ><move>            | Shift the lines described by <*><move> one
  124.                             | shiftwidth to the right (layout!).
  125.      * | >>                 | Shift <*> lines one shiftwidth to the right.
  126.      * | ["<a-z1-9>]p       | Put the contents of the (default undo) buffer
  127.                             | <*> times after the cursor.
  128.                             | A buffer containing lines is put only once,
  129.                             | below the current line.
  130.      * | ["<a-z1-9>]P       | Put the contents of the (default undo) buffer
  131.                             | <*> times before the cursor.
  132.                             | A buffer containing lines is put only once,
  133.                             | above the current line.
  134.      * | .                  | Repeat previous command <*> times.
  135.                             | If the last command before a `.' command
  136.                             | references a numbered buffer, the buffer number
  137.                             | is incremented first (and the count is ignored):
  138.                             |
  139.                             | "1pu.u.u.u.u      - `walk through' buffers 1
  140.                             |                     through 5
  141.                             | "1P....           - restore them
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.     /////////////////
  149.     / deleting text /
  150.     /////////////////
  151.  
  152.     Everything deleted can be stored into a buffer. This is achieved by
  153.     putting a `"' and a letter <a-z> before the delete command. The
  154.     deleted text will be in the buffer with the used letter. If <A-Z>
  155.     is used as buffer name, the adjugate buffer <a-z> will be augmented
  156.     instead of overwritten with the text. The undo buffer always
  157.     contains the latest change. Buffers <1-9> contain the latest 9
  158.     LINE deletions (`"1' is most recent).
  159.  
  160.      * | x                  | Delete <*> chars under and after the cursor.
  161.      * | X                  | <*> chars before the cursor.
  162.      * | d<move>            | From begin to endpoint of <*><move>.
  163.      * | dd                 | <*> lines.
  164.      - | D                  | The rest of the line.
  165.      * | <<move>            | Shift the lines described by <*><move> one
  166.                             | shiftwidth to the left (layout!).
  167.      * | <<                 | Shift <*> lines one shiftwidth to the left.
  168.      * | .                  | Repeat latest command <*> times.
  169.  
  170.     //////////////////////////////////
  171.     / changing text (end with <esc>) /
  172.     //////////////////////////////////
  173.  
  174.      * | r<char>            | Replace <*> chars by <char> - no <esc>.
  175.      * | R                  | Overwrite the rest of the line,
  176.                             | appending change <*> - 1 times.
  177.      * | s                  | Substitute <*> chars.
  178.      * | S                  | <*> lines.
  179.      * | c<move>            | Change from begin to endpoint of <*><move>.
  180.      * | cc                 | <*> lines.
  181.      * | C                  | The rest of the line and <*> - 1 next lines.
  182.      * | =<move>            | If the option `lisp' is set, this command
  183.                             | will realign the lines described by <*><move>
  184.                             | as though they had been typed with the option
  185.                             | `ai' set too.
  186.      - | ~                  | Switch lower and upper cases.
  187.      * | J                  | Join <*> lines (default 2).
  188.      * | .                  | Repeat latest command <*> times (`J' only once).
  189.      - | &                  | Repeat latest `ex' substitute command, e.g.
  190.                             | `:s/wrong/good'.
  191.      - | :[x,y]s/<p>/<r>/<f>| Substitute (on lines x through y) the pattern
  192.                             | <p> (default the last pattern) with <r>.  Useful
  193.                             | flags <f> are `g' for `global' (i.e. change every
  194.                             | non-overlapping occurrence of <p>) and `c' for
  195.                             | `confirm' (type `y' to confirm a particular
  196.                             | substitution, else <cr>).  Instead of `/' any
  197.                             | punctuation CHAR unequal to <lf> can be used as
  198.                             | delimiter.
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.     ///////////////////////////////////
  206.     / substitute replacement patterns /
  207.     ///////////////////////////////////
  208.  
  209.     The basic meta-characters for the replacement pattern are `&' and `~';
  210.     these are given as `\&' and `\~' when nomagic is set.  Each instance
  211.     of `&' is replaced by the characters which the regular expression
  212.     matched.  The meta-character `~' stands, in the replacement
  213.     pattern, for the defining text of the previous replacement
  214.     pattern.  Other meta-sequences possible in the replacement pattern
  215.     are always introduced by the escaping character `\'.  The sequence
  216.     `\n' (with `n' in [1-9]) is replaced by the text matched by the
  217.     n-th regular subexpression enclosed between `\(' and `\)'.  The
  218.     sequences `\u' and `\l' cause the immediately following character
  219.     in the replacement to be converted to upper- or lower-case
  220.     respectively if this character is a letter.  The sequences `\U' and
  221.     `\L' turn such conversion on, either until `\E' or `\e' is
  222.     encountered, or until the end of the replacement pattern.
  223.  
  224.     //////////////////////////////
  225.     / remembering text (yanking) /
  226.     //////////////////////////////
  227.  
  228.     With yank commands you can put `"<a-z>' before the command, just as
  229.     with delete commands. Otherwise you only copy to the undo buffer.
  230.     The use of buffers <a-z> is THE way of copying text to another
  231.     file; see the `:e <file>' command.
  232.  
  233.      * | y<move>            | Yank from begin to endpoint of <*><move>.
  234.      * | yy                 | <*> lines.
  235.      * | Y                  | Idem (should be equivalent to `y$' though).
  236.      - | m<a-z>             | Mark the cursor position with a letter.
  237.  
  238.     ////////////////////////////////////////
  239.     / commands while in append|change mode /
  240.     ////////////////////////////////////////
  241.  
  242.     ^@                      | If typed as the first character of the
  243.                             | insertion, it is replaced with the previous
  244.                             | text inserted (max. 128 chars), after which
  245.                             | the insertion is terminated.
  246.     ^V                      | Deprive the next char of its special meaning
  247.                             | (e.g. <esc>).
  248.     ^D                      | One shiftwidth to the left.
  249.     0^D                     | Remove all indentation on the current line
  250.                             | (there must be no other chars on the line).
  251.     ^^D                     | Idem, but it is restored on the next line.
  252.     ^T                      | one shiftwidth to the right
  253.     ^H | <erase>            | One char back.
  254.     ^W                      | One word back.
  255.     <kill>                  | Back to the begin of the change on the
  256.                             | current line.
  257.     <intr>                  | like <esc>.
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.     /////////////////////////////////////////////////
  265.     / writing, editing other files, and quitting vi /
  266.     /////////////////////////////////////////////////
  267.  
  268.     In `:' `ex' commands `%' denotes the current file, `#' is a synonym for
  269.     the alternate file (which normally is the previous file).
  270.     Marks can be used for line numbers too: '<a-z>.
  271.     In the `:w'|`:f'|`:cd'|`:e'|`:n' commands shell meta-characters can be
  272.     used.
  273.  
  274.     :q                      | Quit vi, unless the buffer has been changed.
  275.     :q!                     | Quit vi without writing.
  276.     ^Z                      | Suspend vi.
  277.     :w                      | Write the file.
  278.     :w <name>               | Write to the file <name>.
  279.     :w >> <name>            | Append the buffer to the file <name>.
  280.     :w! <name>              | Overwrite the file <name>.
  281.     :x,y w <name>           | Write lines x through y to the file <name>.
  282.     :wq                     | Write the file and quit vi; some versions quit
  283.                             | even if the write was unsuccessful!
  284.                             | Use `ZZ' instead.
  285.     ZZ                      | Write if the buffer has been changed, and
  286.                             | quit vi.  If you have invoked vi with the `-r'
  287.                             | option, you'd better write the file
  288.                             | explicitly (`w' or `w!'), or quit the
  289.                             | editor explicitly (`q!') if you don't want
  290.                             | to overwrite the file - some versions of vi
  291.                             | don't handle the `recover' option very well.
  292.     :x [<file>]             | Idem [but write to <file>].
  293.     :x! [<file>]            | `:w![<file>]' and `:q'.
  294.     :pre                    | Preserve the file - the buffer is saved as if
  295.                             | the system had just crashed; for emergencies,
  296.                             | when a `:w' command has failed and you don't
  297.                             | know how to save your work (see `vi -r').
  298.     :f <name>               | Set the current filename to <name>.
  299.     :cd [<dir>]             | Set the working directory to <dir>
  300.                             | (default home directory).
  301.     :cd! [<dir>]            | Idem, but don't save changes.
  302.     :e [+<cmd>] <file>      | Edit another file without quitting vi - the
  303.                             | buffers are not changed (except the undo
  304.                             | buffer), so text can be copied from one file to
  305.                             | another this way.  [Execute the `ex' command
  306.                             | <cmd> (default `$') when the new file has been
  307.                             | read into the buffer.]  <cmd> must contain no
  308.                             | <sp> or <ht>.  See `vi startup'.
  309.     :e! [+<cmd>] <file>     | Idem, without writing the current buffer.
  310.     ^^                      | Edit the alternate (normally the previous) file.
  311.     :rew                    | Rewind the argument list, edit the first file.
  312.     :rew!                   | Idem, without writing the current buffer.
  313.     :n [+<cmd>] [<files>]   | Edit next file or specify a new argument list.
  314.     :n! [+<cmd>] [<files>]  | Idem, without writing the current buffer.
  315.     :args                   | Give the argument list, with the current file
  316.                             | between `[' and `]'.
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.     ////////////////////
  324.     / display commands /
  325.     ////////////////////
  326.  
  327.     ^G                      | Give file name, status, current line number
  328.                             | and relative position.
  329.     ^L                      | Refresh the screen (sometimes `^P' or `^R').
  330.     ^R                      | Sometimes vi replaces a deleted line by a `@',
  331.                             | to be deleted by `^R' (see option `redraw').
  332.     [*]^E                   | Expose <*> more lines at bottom, cursor
  333.                             | stays put (if possible).
  334.     [*]^Y                   | Expose <*> more lines at top, cursor
  335.                             | stays put (if possible).
  336.     [*]^D                   | Scroll <*> lines downward
  337.                             | (default the number of the previous scroll;
  338.                             | initialization: half a page).
  339.     [*]^U                   | Scroll <*> lines upward
  340.                             | (default the number of the previous scroll;
  341.                             | initialization: half a page).
  342.     [*]^F                   | <*> pages forward.
  343.     [*]^B                   | <*> pages backward (in older versions `^B' only
  344.                             | works without count).
  345.  
  346.     If in the next commands the field <wi> is present, the windowsize
  347.     will change to <wi>. The window will always be displayed at the
  348.     bottom of the screen.
  349.  
  350.     [*]z[wi]<cr>            | Put line <*> at the top of the window
  351.                             | (default the current line).
  352.     [*]z[wi]+               | Put line <*> at the top of the window
  353.                             | (default the first line of the next page).
  354.     [*]z[wi]-               | Put line <*> at the bottom of the window
  355.                             | (default the current line).
  356.     [*]z[wi].               | Put line <*> in the centre of the window
  357.                             | (default the current line).
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.     ////////////////////////////
  365.     / mapping and abbreviation /
  366.     ////////////////////////////
  367.  
  368.     When mapping take a look at the options `to' and `remap' (below).
  369.  
  370.     :map <string> <seq>     | <string> is interpreted as <seq>, e.g.
  371.                             | `:map ^C :!cc %^V<cr>' to compile from within vi
  372.                             | (vi replaces `%' with the current file name).
  373.     :map                    | Show all mappings.
  374.     :unmap <string>         | Deprive <string> of its mapping.  When vi
  375.                             | complains about non-mapped macros (whereas no
  376.                             | typos have been made), first do something like
  377.                             | `:map <string> Z', followed by `:unmap <string>'
  378.                             | (`Z' must not be a macro itself), or switch to
  379.                             | `ex' mode first with `Q'.
  380.     :map! <string> <seq>    | Mapping in append mode, e.g.
  381.                             | `:map! \be begin^V<cr>end;^V<esc>O<ht>'.
  382.                             | When <string> is preceded by `^V', no
  383.                             | mapping is done.
  384.     :map!                   | Show all append mode mappings.
  385.     :unmap! <string>        | Deprive <string> of its mapping (see `:unmap').
  386.     :ab <string> <seq>      | Whenever in append mode <string> is preceded and
  387.                             | followed by a breakpoint (e.g. <sp> or `,'), it
  388.                             | is interpreted as <seq>, e.g. `:ab p procedure'.
  389.                             | A `^V' immediately following <string> inhibits
  390.                             | expansion.
  391.     :ab                     | Show all abbreviations.
  392.     :unab <string>          | Do not consider <string> an abbreviation
  393.                             | anymore (see `:unmap').
  394.     @<a-z>                  | Consider the contents of the named register a
  395.                             | command, e.g.:
  396.                             |       o0^D:s/wrong/good/<esc>"zdd
  397.                             | Explanation:
  398.                             |       o              - open a new line
  399.                             |       0^D            - remove indentation
  400.                             |       :s/wrong/good/ - this input text is an
  401.                             |                        `ex' substitute command
  402.                             |       <esc>          - finish the input
  403.                             |       "zdd           - delete the line just
  404.                             |                        created into register `z'
  405.                             | Now you can type `@z' to substitute `wrong'
  406.                             | with `good' on the current line.
  407.     @@                      | Repeat last register command.
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.     /////////////////////////////
  415.     / switch and shell commands /
  416.     /////////////////////////////
  417.  
  418.     Q | ^\ | <intr><intr>   | Switch from vi to `ex'.
  419.     :                       | An `ex' command can be given.
  420.     :vi                     | Switch from `ex' to vi.
  421.     :sh                     | Execute a subshell, back to vi by `^D'.
  422.     :[x,y]!<cmd>            | Execute a shell <cmd> [on lines x through y;
  423.                             | these lines will serve as input for <cmd> and
  424.                             | will be replaced by its standard output].
  425.     :[x,y]!! [<args>]       | Repeat last shell command [and append <args>].
  426.     :[x,y]!<cmd> ! [<args>] | Use the previous command (the second `!') in a
  427.                             | new command.
  428.     [*]!<move><cmd>         | The shell executes <cmd>, with as standard
  429.                             | input the lines described by <*><move>,
  430.                             | next the standard output replaces those lines
  431.                             | (think of `cb', `sort', `nroff', etc.).
  432.     [*]!<move>!<args>       | Append <args> to the last <cmd> and execute it,
  433.                             | using the lines described by the current
  434.                             | <*><move>.
  435.     [*]!!<cmd>              | Give <*> lines as standard input to the
  436.                             | shell <cmd>, next let the standard output
  437.                             | replace those lines.
  438.     [*]!!! [<args>]         | Use the previous <cmd> [and append <args> to it].
  439.     :x,y w !<cmd>           | Let lines x to y be standard input for <cmd>
  440.                             | (notice the <sp> between `w' and `!').
  441.     :r!<cmd>                | Put the output of <cmd> onto a new line.
  442.     :r <name>               | Read the file <name> into the buffer.
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.     //////////////
  450.     / vi startup /
  451.     //////////////
  452.  
  453.     vi [<files>]            | Edit the files, start with the first page of
  454.                             | the first file.
  455.  
  456.     The editor can be initialized by the shell variable `EXINIT', which
  457.     looks like:
  458.  
  459.             EXINIT='<cmd>|<cmd>|...'
  460.             <cmd>: set options
  461.                    map ...
  462.                    ab ...
  463.             export EXINIT (in the Bourne shell)
  464.  
  465.     However, the list of initializations can also be put into a file.
  466.     If this file is located in your home directory, and is named `.exrc'
  467.     AND the variable `EXINIT' is NOT set, the list will be executed
  468.     automatically at startup time. However, vi will always execute the
  469.     contents of a `.exrc' in the current directory, if you own the file.
  470.     Else you have to give the execute command yourself:
  471.  
  472.             :source file
  473.     or
  474.             :so file
  475.  
  476.     On-line initializations can be given with `vi +<cmd> file', e.g.:
  477.  
  478.     vi +x file              | The cursor will immediately jump to line x
  479.                             | (default last line).
  480.     vi +/<string> file      | ~ to the first occurrence of <string>.
  481.  
  482.     You can start at a particular tag with:
  483.  
  484.     vi -t <tag>             | Start in the right file in the right place.
  485.  
  486.     Sometimes (e.g. if the system crashed while you were editing) it is
  487.     possible to recover files lost in the editor by `vi -r file'.  If
  488.     you just want to view a file by using vi, and you want to avoid any
  489.     change, instead of vi you can use the `view' or `vi -R' command:
  490.     the option `readonly' will be set automatically (with `:w!' you can
  491.     override this option).
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.     //////////////////////////////
  499.     / the most important options /
  500.     //////////////////////////////
  501.  
  502.     ai                      | autoindent - In append mode after a <cr> the
  503.                             | cursor will move directly below the first
  504.                             | CHAR on the previous line.  However, if the
  505.                             | option `lisp' is set, the cursor will align
  506.                             | at the first argument to the last open list.
  507.     aw                      | autowrite - Write at every shell escape.
  508.                             | (useful when compiling from within vi)
  509.     dir=<string>            | directory - The directory for vi to make
  510.                             | temporary files (default `/tmp').
  511.     eb                      | errorbells - Beeps when you goof
  512.                             | (not on every terminal).
  513.     ic                      | ignorecase - No distinction between upper and
  514.                             | lower cases when searching.
  515.     lisp                    | Redefine the following commands:
  516.                             | `(', `)'   - move backward (forward) over
  517.                             |              S-expressions
  518.                             | `{', `}'   - idem, but don't stop at atoms
  519.                             | `[[', `]]' - go to previous (next) line
  520.                             |              beginning with a `('
  521.                             | See option `ai'.
  522.     list                    | <lf> is shown as `$', <ht> as `^I'.
  523.     magic                   | If this option is set (default), the chars `.',
  524.                             | `[' and `*' have special meanings within search
  525.                             | and `ex' substitute commands.  To deprive such a
  526.                             | char of its special function it must be preceded
  527.                             | by a `\'.  If the option is turned off it's just
  528.                             | the other way around.  Meta-chars:
  529.                             | ^<string>    - <string> must begin the line
  530.                             | <string>$    - <string> must end the line
  531.                             | .            - matches any char
  532.                             | [a-z]        - matches any char in the range
  533.                             | [<string>]   - matches any char in <string>
  534.                             | [^<string>]  - matches any char not in <string>
  535.                             | <char>*      - 0 or more <char>s
  536.                             | \<<string>\> - <string> must be a word
  537.     nu                      | number - Numbers before the lines.
  538.     para=<string>           | paragraphs - Every pair of chars in <string> is
  539.                             | considered a paragraph delimiter nroff macro
  540.                             | (for `{' and `}').  A <sp> preceded by a `\'
  541.                             | indicates the previous char is a single letter
  542.                             | macro.  `:set para=P\ bp' introduces `.P' and
  543.                             | `.bp' as paragraph delimiters.  Empty lines and
  544.                             | section boundaries are paragraph boundaries too.
  545.     redraw                  | The screen remains up to date.
  546.     remap                   | If on (default), macros are repeatedly
  547.                             | expanded until they are unchanged.
  548.                             | Example: if `o' is mapped to `A', and `A'
  549.                             | is mapped to `I', then `o' will map to `I'
  550.                             | if `remap' is set, else it will map to `A'.
  551.     report=<*>              | Vi reports whenever e.g. a delete
  552.                             | or yank command affects <*> or more lines.
  553.     ro                      | readonly - The file is not to be changed.
  554.                             | However, `:w!' will override this option.
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.     sect=<string>           | sections - Gives the section delimiters (for `[['
  562.                             | and `]]'); see option `para'. A `{' beginning a
  563.                             | line also starts a section (as in C functions).
  564.     sh=<string>             | shell - The program to be used for shell escapes
  565.                             | (default `$SHELL' (default `/bin/sh')).
  566.     sw=<*>                  | shiftwidth - Gives the shiftwidth (default 8
  567.                             | positions).
  568.     sm                      | showmatch - Whenever you append a `)', vi shows
  569.                             | its match if it's on the same page; also with
  570.                             | `{' and `}'.  If there's no match, vi will beep.
  571.     terse                   | Short error messages.
  572.     to                      | timeout - If this option is set, append mode
  573.                             | mappings will be interpreted only if they're
  574.                             | typed fast enough.
  575.     ts=<*>                  | tabstop - The length of a <ht>; warning: this is
  576.                             | only IN the editor, outside of it <ht>s have
  577.                             | their normal length (default 8 positions).
  578.     wa                      | writeany - No checks when writing (dangerous).
  579.     warn                    | Warn you when you try to quit without writing.
  580.     wi=<*>                  | window - The default number of lines vi shows.
  581.     wm=<*>                  | wrapmargin - In append mode vi automatically
  582.                             | puts a <lf> whenever there is a <sp> or <ht>
  583.                             | within <wm> columns from the right margin.
  584.     ws                      | wrapscan - When searching, the end is
  585.                             | considered `stuck' to the begin of the file.
  586.  
  587.     :set <option>           | Turn <option> on.
  588.     :set no<option>         | Turn <option> off.
  589.     :set <option>=<value>   | Set <option> to <value>.
  590.     :set                    | Show all non-default options and their values.
  591.     :set <option>?          | Show <option>'s value.
  592.     :set all                | Show all options and their values.
  593.  
  594.  
  595.     /////////////////
  596.     / contributions /
  597.     /////////////////
  598.  
  599.     Maarten Litmaath <maart@cs.vu.nl>
  600.     Rich Salz <rsalz@bbn.com>
  601.     Eamonn McManus <emcmanus@cs.tcd.ie>
  602.     Diomidis Spinellis <diomidis%ecrcvax.uucp@pyramid.pyramid.com>
  603.     Blair P. Houghton <bph@buengc.bu.edu>
  604.     Rusty Haddock <{uunet,att,rutgers}!mimsy.umd.edu!fe2o3!rusty>
  605.     Panos Tsirigotis <panos@boulder.colorado.edu>
  606.     David J. MacKenzie <djm@wam.umd.edu>
  607.     Kevin Carothers <kevin@ttidca.tti.com>
  608.     Dan Mercer <mercer@ncrcce.StPaul.NCR.COM>
  609.  
  610.     Patchlevel: 6
  611.  
  612.  
  613.  
  614. -- 
  615. Rob Stampfli        614-860-4268 (work)    614-864-9377 (home)
  616. kd8wk@n8jyv.oh (ham)    stampfli@att.com    osu-cis!kd8wk!res
  617.  
  618.  
  619.