home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume6 / help / part2 / help.dir / vi / options.HLP next >
Encoding:
Text File  |  1986-11-30  |  1.6 KB  |  56 lines

  1.  
  2.     Many parameters of the vi editor are controlled by option
  3.     settings: search modes, margins, tabs, line numbers, etc.
  4.     To set these modes the way you like, you can modify the
  5.     values of these options.
  6.  
  7.     There are two ways to set the value of an option: interactively
  8.     or thru initialization.  The environment variable `EXINIT' is
  9.     used by vi to set the initial option values.   You could have
  10.     a line in your ".login" file like this:
  11.  
  12.       setenv EXINIT 'set magic ignorecase nowrapscan shiftwidth=8'
  13.  
  14.     to set the logical options magic, ignorecase, and wrapscan, and
  15.     to set the numerical option shiftwidth.
  16.  
  17.     You can also set options while in the vi edit session.  Just
  18.     type colon ':' and to the prompt type:
  19.  
  20.         set autowrite
  21.  
  22.     to set the autowrite option.
  23.  
  24.     Note that setting options is done in "last line" state.
  25.  
  26.     Here is a list of useful options, numerical options are 
  27.     followed by a '=n'.  You set their value with the `=###'
  28.     construct shown above.  Boolean options are reset by preceding
  29.     their name with "no" (e.g. "nomagic").
  30.  
  31.       autowrite    - write buffer before changing files
  32.  
  33.       lisp        - set up lisp mode
  34.  
  35.       ignorecase    - ignore case of letters in searches
  36.  
  37.       magic        - allow pattern-matching expression searches
  38.  
  39.       number    - number lines
  40.  
  41.       redraw    - simulate a smart terminal
  42.  
  43.       shiftwidth=n    - set shift-command widths to n
  44.  
  45.       showmatch    - show matching parentheses as they are closed
  46.  
  47.       wrapmargin=n    - wrap lines n columns from right margin
  48.  
  49.  
  50.     Personally, I prefer the following options combination:
  51.  
  52.       setenv EXINIT 'set redraw noslowopen showmatch magic optimize'
  53.  
  54.     For a complete list of options, get into vi and type ":set all".
  55.  
  56.