home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Spezial / SPEZIAL2_97.zip / SPEZIAL2_97.iso / ANWEND / EDITOR / NVI179B / NVI179B.ZIP / docs / USD.doc / vi.ref / vi.ref.txt < prev   
Text File  |  1996-10-23  |  328KB  |  6,337 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.                    VVii//EExx RReeffeerreennccee MMaannuuaall
  10.  
  11.                         _K_e_i_t_h _B_o_s_t_i_c
  12.  
  13.                  Computer Science Division
  14.  Department of Electrical Engineering and Computer Science
  15.              University of California, Berkeley
  16.                 Berkeley, California  94720
  17.  
  18.                       October 23, 1996
  19.  
  20.  
  21.  
  22.  
  23.  
  24.                           _A_b_s_t_r_a_c_t
  25.  
  26.  
  27.  
  28.      This document is the reference guide for the 4.4BSD
  29. implementations of nneexx/nnvvii, which are implementations of
  30. the historic Berkeley eexx/vvii editors.
  31.  
  32.  
  33.  
  34.  
  35.  
  36.                          _L_i_c_e_n_s_i_n_g
  37.  
  38.  
  39.  
  40. Copyright (c) 1991, 1992, 1993, 1994
  41.      The  Regents  of  the  University  of  California.  All
  42. Rights Reserved.
  43.  
  44. Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996
  45.      Keith Bostic.  All Rights Reserved.
  46.  
  47.  
  48.      The vi program is freely redistributable.  You are wel-
  49. come to copy, modify and share it with others under the con-
  50. ditions listed in the LICENSE file.   If  any  company  (not
  51. individual!)  finds  vi  sufficiently  useful that you would
  52. have purchased it, or if any company wishes to  redistribute
  53. it, contributions to the authors would be appreciated.
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.                       _A_c_k_n_o_w_l_e_d_g_e_m_e_n_t_s
  75.  
  76.  
  77.  
  78.  
  79.      Bruce  Englar  encouraged  the early development of
  80. the historic eexx/vvii editor.  Peter Kessler  helped  bring
  81. sanity  to  version  2's command layout.  Bill Joy wrote
  82. versions 1 and 2.0 through 2.7, and created  the  frame-
  83. work  that users see in the present editor.  Mark Horton
  84. added macros and other features and made eexx/vvii work on a
  85. large number of terminals and Unix systems.
  86.  
  87.      NNvvii is originally derived from software contributed
  88. to the University of California, Berkeley by Steve Kirk-
  89. endall, the author of the vvii clone eellvviiss.
  90.  
  91.      IEEE  Standard  Portable Operating System Interface
  92. for Computer Environments (POSIX) 1003.2  style  Regular
  93. Expression support was done by Henry Spencer.
  94.  
  95.      The  curses  library  was  originally  done  by Ken
  96. Arnold.  Scrolling and reworking for  nnvvii  was  done  by
  97. Elan Amir.
  98.  
  99.      George  Neville-Neil added the Tcl interpreter, and
  100. Sven Verdoolaege added the Perl interpreter.
  101.  
  102.      Rob Mayoff added Cscope support.
  103.  
  104.      The Institute of Electrical and  Electronics  Engi-
  105. neers  has  given  us  permission to reprint portions of
  106. their documentation.   Portions  of  this  document  are
  107. reprinted and reproduced from IEEE Std 1003.2-1992, IEEE
  108. Standard Portable Operating System Interface for Comput-
  109. er Environments (POSIX), copyright 1992 by the Institute
  110. of Electrical and Electronics Engineers, Inc.
  111.  
  112.      The financial support of UUNET Communications  Ser-
  113. vices is gratefully acknowledged.
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137. UUSSDD::1133--44                                     VVii//EExx RReeffeerreennccee
  138.  
  139.  
  140. 11..  DDeessccrriippttiioonn
  141.  
  142.      VVii is a screen oriented text editor.  EExx is a line-ori-
  143. ented text editor.  EExx and vvii are  different  interfaces  to
  144. the  same  program,  and  it  is possible to switch back and
  145. forth during an edit session.  VViieeww  is  the  equivalent  of
  146. using the --RR (read-only) option of vvii.
  147.  
  148.      This  reference  manual  is  the  one provided with the
  149. nneexx/nnvvii versions of the eexx/vvii  text  editors.   NNeexx/nnvvii  are
  150. intended  as  bug-for-bug  compatible  replacements  for the
  151. original Fourth Berkeley Software Distribution (4BSD)  eexx/vvii
  152. programs.   This reference manual is accompanied by a tradi-
  153. tional-style manual page.  That manual  page  describes  the
  154. functionality  found  in  eexx/vvii  in far less detail than the
  155. description here.  In  addition,  it  describes  the  system
  156. interface  to  eexx/vvii,  e.g.  command  line  options, session
  157. recovery,  signals,  environmental  variables,  and  similar
  158. things.
  159.  
  160.      This  reference  is intended for users already familiar
  161. with eexx/vvii.  Anyone else should almost certainly read a good
  162. tutorial  on  the editor first.  If you are in an unfamiliar
  163. environment, and you absolutely have to get work done  imme-
  164. diately, see the section entitled "FFaasstt SSttaarrttuupp" in the man-
  165. ual page.  It is probably enough to get you started.
  166.  
  167.      There are a few features in nneexx/nnvvii that are not  found
  168. in historic versions of eexx/vvii.  Some of the more interesting
  169. of those features are briefly described in the next section,
  170. entitled  "AAddddiittiioonnaall FFeeaattuurreess".  For the rest of this docu-
  171. ment, nneexx/nnvvii is used only when it is necessary  to  distin-
  172. guish it from the historic implementations of eexx/vvii.
  173.  
  174.      Future  versions  of this software will be periodically
  175. made available by anonymous ftp, and can be  retrieved  from
  176. ftp.cs.berkeley.edu, in the directory ucb/4bsd.
  177.  
  178. 22..  AAddddiittiioonnaall FFeeaattuurreess iinn NNeexx//NNvvii
  179.  
  180.      There  are a few features in nneexx/nnvvii that are not found
  181. in historic versions of eexx/vvii.  Some of the more interesting
  182. of these are as follows:
  183.  
  184. 88--bbiitt cclleeaann ddaattaa,, llaarrggee lliinneess,, ffiilleess
  185.      NNeexx/nnvvii  will  edit  any format file.  Line lengths are
  186.      limited by available memory, and file sizes are limited
  187.      by  available  disk space.  The vvii text input mode com-
  188.      mand <<ccoonnttrrooll--XX>>  can  insert  any  possible  character
  189.      value into the text.
  190.  
  191. BBaacckkggrroouunndd aanndd ffoorreeggrroouunndd ssccrreeeennss
  192.      The  bbgg command backgrounds the current screen, and the
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203. VVii//EExx RReeffeerreennccee                                     UUSSDD::1133--55
  204.  
  205.  
  206.      ffgg command foregrounds backgrounded screens.  The  ddiiss--
  207.      ppllaayy  command  can  be  used  to  list  the  background
  208.      screens.
  209.  
  210. CCoommmmaanndd EEddiittiinngg
  211.      You can enter a normal editing window on the  collected
  212.      commands  that  you've entered on the vvii colon command-
  213.      line, and then modify and/or execute the commands.  See
  214.      the cceeddiitt edit option for more information.
  215.  
  216. DDiissppllaayyss
  217.      The  ddiissppllaayy command can be used to display the current
  218.      buffers, the backgrounded screens, and the tags  stack.
  219.  
  220. EExxtteennddeedd RReegguullaarr EExxpprreessssiioonnss
  221.      The  eexxtteennddeedd  option  causes Regular Expressions to be
  222.      interpreted as as Extended Regular  Expressions,  (i.e.
  223.      _e_g_r_e_p(1) style Regular Expressions).
  224.  
  225. FFiillee NNaammee CCoommpplleettiioonn
  226.      It is possible to do file name completion and file name
  227.      displays when entering commands on the  vvii  colon  com-
  228.      mand-line.   See the ffiilleecc option for more information.
  229.  
  230. IInnffiinniittee uunnddoo
  231.      Changes made during an edit session may be rolled back-
  232.      ward  and  forward.  A ..  command immediately after a uu
  233.      command continues either forward or backward  depending
  234.      on whether the uu command was an undo or a redo.
  235.  
  236. LLeefftt--rriigghhtt ssccrroolllliinngg
  237.      The lleeffttrriigghhtt option causes nnvvii to do left-right screen
  238.      scrolling, instead of the traditional vvii line wrapping.
  239.  
  240. MMeessssaaggee CCaattaallooggss
  241.      It  is possible to display informational and error mes-
  242.      sages in different languages by providing a catalog  of
  243.      messages.   See  the  mmssggccaatt  option and the file cata-
  244.      log/README ffoorr mmoorree iinnffoorrmmaattiioonn..
  245.  
  246. IInnccrreemmeennttiinngg nnuummbbeerrss
  247.      The ## command increments or decrements the number  ref-
  248.      erenced by the cursor.
  249.  
  250. PPrreevviioouuss ffiillee
  251.      The  pprreevviioouuss  command edits the previous file from the
  252.      argument list.
  253.  
  254. SSccrriippttiinngg llaanngguuaaggeess
  255.      The ::ppee[[rrll]] ccmmdd, ::ppeerrlldd[[oo]] ccmmdd and ::ttcc[[ll]] ccmmdd  commands
  256.      execute  Perl  and  Tcl/Tk  commands,  respectively, on
  257.      lines from the edit buffer.  See  the  "SSccrriippttiinngg  LLaann--
  258.      gguuaaggeess"  section  and  the  specific  commands for more
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269. UUSSDD::1133--66                                     VVii//EExx RReeffeerreennccee
  270.  
  271.  
  272.      information.
  273.  
  274. SSpplliitt ssccrreeeennss
  275.      The EEddiitt, EExx, NNeexxtt, PPrreevviioouuss, TTaagg  and  VViissuuaall  (in  vvii
  276.      mode)  commands divide the screen into multiple editing
  277.      regions and then perform their normal function in a new
  278.      screen  area.   The <<ccoonnttrrooll--WW>> command rotates between
  279.      the foreground screens.  The rreessiizzee command can be used
  280.      to grow or shrink a particular screen.
  281.  
  282. TTaagg ssttaacckkss
  283.      Tags  are  now  maintained in a stack.  The <<ccoonnttrrooll--TT>>
  284.      command returns to the previous tag location.  The ttaagg--
  285.      ppoopp  command returns to the most recent tag location by
  286.      default, or, optionally to a specific tag number in the
  287.      tag  stack,  or  the  most  recent tag from a specified
  288.      file.  The ddiissppllaayy command can be used to list the tags
  289.      stack.   The  ttaaggttoopp  command returns to the top of the
  290.      tag stack.
  291.  
  292. UUssaaggee iinnffoorrmmaattiioonn
  293.      The eexxuussaaggee and vviiuussaaggee commands provide usage informa-
  294.      tion  for all of the eexx and vvii commands by default, or,
  295.      optionally, for a specific command or key.
  296.  
  297. WWoorrdd sseeaarrcchh
  298.      The <<ccoonnttrrooll--AA>> command searches for  the  word  refer-
  299.      enced by the cursor.
  300.  
  301. 33..  SSttaarrttuupp IInnffoorrmmaattiioonn
  302.  
  303.      EExx/vvii  interprets  one  of  two  possible environmental
  304. variables and reads up to three of five possible files  dur-
  305. ing  startup.   The variables and files are expected to con-
  306. tain eexx commands, not vvii commands.  In  addition,  they  are
  307. interpreted _b_e_f_o_r_e the file to be edited is read, and there-
  308. fore many eexx commands may not be used.  Generally, any  com-
  309. mand that requires output to the screen or that needs a file
  310. upon which to operate, will cause an error if included in  a
  311. startup file or environmental variable.
  312.  
  313.      Because  the  eexx  command set supported by nneexx/nnvvii is a
  314. superset of the command set supported by  historical  imple-
  315. mentations  of eexx, nneexx/nnvvii can use the startup files created
  316. for the historical implementations, but the converse may not
  317. be true.
  318.  
  319.      If  the  --ss (the historic - option) is specified, or if
  320. standard input is redirected from a file, all  environmental
  321. variables and startup files are ignored.
  322.  
  323.      Otherwise,  startup  files  and environmental variables
  324. are handled in the following order:
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335. VVii//EExx RReeffeerreennccee                                     UUSSDD::1133--77
  336.  
  337.  
  338.  (1)   The file /etc/vi.exrc is read, as long as it is owned
  339.        by root or the effective user ID of the user.
  340.  
  341.  (2)   The  environmental  variable NEXINIT (or the variable
  342.        EXINIT, if NEXINIT is not set) is interpreted.
  343.  
  344.  (3)   If neither NEXINIT or EXINIT was set,  and  the  HOME
  345.        environmental  variable is set, the file $HOME/.nexrc
  346.        (or the file $HOME/.exrc, if  $HOME/.nexrc  does  not
  347.        exist)  is  read, as long as the effective user ID of
  348.        the user is root or is the same as the owner  of  the
  349.        file.
  350.  
  351.        When  the  $HOME  directory  is  being  used for both
  352.        nneexx/nnvvii and an historic implementation  of  eexx/vvii,  a
  353.        possible solution is to put nneexx/nnvvii specific commands
  354.        in the .nexrc ffiillee,, aalloonngg wwiitthh aa ::ssoouurrccee  $$HHOOMMEE//..eexxrrcc
  355.        ccoommmmaanndd ttoo rreeaadd iinn tthhee ccoommmmaannddss ccoommmmoonn ttoo bbootthh iimmppllee--
  356.        mmeennttaattiioonnss..
  357.  
  358.  (4)   If the eexxrrcc option was turned on by one of the previ-
  359.        ous  startup information sources, the file .nexrc ((oorr
  360.        tthhee ffiillee ..eexxrrcc, if .nexrc ddooeess nnoott eexxiisstt)) iiss rreeaadd,, aass
  361.        lloonngg aass tthhee eeffffeeccttiivvee uusseerr IIDD ooff tthhee uusseerr iiss tthhee ssaammee
  362.        aass tthhee oowwnneerr ooff tthhee ffiillee..
  363.  
  364.      No startup file is read if it  is  writable  by  anyone
  365. other than its owner.
  366.  
  367.      It is not an error for any of the startup environmental
  368. variables or files not to exist.
  369.  
  370.      Once all environmental variables are  interpreted,  and
  371. all  startup  files are read, the first file to be edited is
  372. read in (or a temporary file is created).   Then,  any  com-
  373. mands  specified  using  the  --cc option are executed, in the
  374. context of that file.
  375.  
  376. 44..  RReeccoovveerryy
  377.  
  378.      There is no recovery  program  for  nneexx/nnvvii,  nor  does
  379. nneexx/nnvvii run setuid.  Recovery files are created readable and
  380. writable by the owner only.   Users  may  recover  any  file
  381. which  they can read, and the superuser may recover any edit
  382. session.
  383.  
  384.      Edit sessions are backed  by  files  in  the  directory
  385. named     by    the    rreeccddiirr    option    (the    directory
  386. /var/tmp/vi.recover bbyy ddeeffaauulltt)),, aanndd aarree nnaammeedd  ""vvii..XXXXXXXXXXXX"",,
  387. wwhheerree  ""XXXXXXXXXXXX"" iiss aa nnuummbbeerr rreellaatteedd ttoo tthhee pprroocceessss IIDD..  WWhheenn
  388. aa ffiillee iiss ffiirrsstt mmooddiiffiieedd,, aa sseeccoonndd rreeccoovveerryy ffiillee  ccoonnttaaiinniinngg
  389. aann  eemmaaiill  mmeessssaaggee  ffoorr  tthhee  uusseerr  iiss ccrreeaatteedd,, aanndd iiss nnaammeedd
  390. ""rreeccoovveerr..XXXXXXXXXXXX"",, wwhheerree,, aaggaaiinn,, ""XXXXXXXXXXXX"" iiss aassssoocciiaatteedd  wwiitthh
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401. UUSSDD::1133--88                                     VVii//EExx RReeffeerreennccee
  402.  
  403.  
  404. tthhee pprroocceessss IIDD..  BBootthh ffiilleess aarree rreemmoovveedd aatt tthhee eenndd ooff aa nnoorr--
  405. mmaall eeddiitt sseessssiioonn,, bbuutt wwiillll rreemmaaiinn iiff  tthhee  eeddiitt  sseessssiioonn  iiss
  406. aabbnnoorrmmaallllyy  tteerrmmiinnaatteedd oorr tthhee uusseerr rruunnss tthhee eexx pprreesseerrvvee ccoomm--
  407. mmaanndd..
  408.  
  409.      The rreeccddiirr option may be set in either  the  user's  or
  410. system's  startup  information, changing the recovery direc-
  411. tory.  (Note, however, that if a memory based file system is
  412. used as the backup directory, each system reboot will delete
  413. all of the recovery files!   The  same  caution  applies  to
  414. directories such as /tmp wwhhiicchh aarree cclleeaarreedd ooff tthheeiirr ccoonntteennttss
  415. bbyy aa  ssyysstteemm  rreebboooott,,  oorr  //uussrr//ttmmpp  which  is  periodically
  416. cleared of old files on many systems.)
  417.  
  418.      The  recovery  directory should be owned by root, or at
  419. least by a pseudo-user.  In addition, if directory  "sticky-
  420. bit"  semantics are available, the directory should have the
  421. sticky-bit set so that files may only be  removed  by  their
  422. owners.   The  recovery  directory  must be read, write, and
  423. executable by any user, i.e. mode 1777.
  424.  
  425.      If the recovery directory does not  exist,  eexx/vvii  will
  426. attempt  to  create  it.   This  can  result in the recovery
  427. directory being owned by a normal  user,  which  means  that
  428. that  user  will be able to remove other user's recovery and
  429. backup files.  This is annoying, but is not a security issue
  430. as the user cannot otherwise access or modify the files.
  431.  
  432.      The  recovery file has all of the necessary information
  433. in it to enable the user to recover the  edit  session.   In
  434. addition,  it  has  all  of  the necessary email headers for
  435. _s_e_n_d_m_a_i_l(8).  When the system is rebooted, all of the  files
  436. in /var/tmp/vi.recover _n_a_m_e_d _"rreeccoovveerr..XXXXXXXXXXXX_" _s_h_o_u_l_d _b_e _s_e_n_t
  437. _t_o _t_h_e_i_r _o_w_n_e_r_s_, _b_y _e_m_a_i_l_, _u_s_i_n_g _t_h_e --tt _o_p_t_i_o_n  _o_f  sseennddmmaaiill
  438. _(_o_r  _a  _s_i_m_i_l_a_r  _m_e_c_h_a_n_i_s_m  _i_n  _o_t_h_e_r  _m_a_i_l_e_r_s_)_.   _I_f  eexx_/vvii
  439. _r_e_c_e_i_v_e_s _a _h_a_n_g_u_p _(_S_I_G_H_U_P_) _s_i_g_n_a_l_, _o_r _t_h_e _u_s_e_r _e_x_e_c_u_t_e_s  _t_h_e
  440. eexx  pprreesseerrvvee  _c_o_m_m_a_n_d_,  eexx_/vvii  _w_i_l_l  _a_u_t_o_m_a_t_i_c_a_l_l_y _e_m_a_i_l _t_h_e
  441. _r_e_c_o_v_e_r_y _i_n_f_o_r_m_a_t_i_o_n _t_o _t_h_e _u_s_e_r_.
  442.  
  443.      If your system does not have the sseennddmmaaiill utility (or a
  444. mailer program which supports its interface) the source file
  445. nvi/common/recover.c wwiillll hhaavvee ttoo bbee mmooddiiffiieedd  ttoo  uussee  yyoouurr
  446. llooccaall  mmaaiill  ddeelliivveerryy pprrooggrraammss..  NNoottee,, iiff nneexx//nnvvii iiss cchhaannggeedd
  447. ttoo uussee aannootthheerr mmaaiilleerr,, iitt iiss iimmppoorrttaanntt ttoo rreemmeemmbbeerr tthhaatt  tthhee
  448. oowwnneerr  ooff  tthhee ffiillee ggiivveenn ttoo tthhee mmaaiilleerr iiss tthhee nneexx//nnvvii uusseerr,,
  449. ssoo nnootthhiinngg iinn tthhee ffiillee sshhoouulldd bbee ttrruusstteedd aass iitt mmaayy hhaavvee bbeeeenn
  450. mmooddiiffiieedd iinn aann eeffffoorrtt ttoo ccoommpprroommiissee tthhee ssyysstteemm..
  451.  
  452.      Finally,  the  owner execute bit is set on backup files
  453. when they are created, and unset when they are  first  modi-
  454. fied, e.g. backup files that have no associated email recov-
  455. ery file will have this bit set.  (There  is  also  a  small
  456. window  where  empty  files  can be created and not yet have
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467. VVii//EExx RReeffeerreennccee                                     UUSSDD::1133--99
  468.  
  469.  
  470. this bit set.  This is due to the method in which the  files
  471. are  created.)  Such files should be deleted when the system
  472. reboots.
  473.  
  474.      A simple way to do this cleanup is to  run  the  Bourne
  475. shell script rreeccoovveerr, from your /etc/rc.local ((oorr ootthheerr ssyyss--
  476. tteemm ssttaarrttuupp)) ffiillee..  TThhee ssccrriipptt sshhoouulldd wwoorrkk wwiitthh tthhee hhiissttoorriicc
  477. BBoouurrnnee  sshheellll,,  aa PPOOSSIIXX 11000033..22 sshheellll oorr tthhee KKoorrnn sshheellll..  TThhee
  478. rreeccoovveerr ssccrriipptt iiss iinnssttaalllleedd aass ppaarrtt ooff tthhee nneexx//nnvvii iinnssttaallllaa--
  479. ttiioonn pprroocceessss..
  480.  
  481.      Consult  the manual page for details on recovering pre-
  482. served or aborted editing sessions.
  483.  
  484. 55..  SSiizziinngg tthhee SSccrreeeenn
  485.  
  486.      The size of the screen can be set in a number of  ways.
  487. EExx/vvii  takes  the  following steps until values are obtained
  488. for both the number of rows and number  of  columns  in  the
  489. screen.
  490.  
  491.  (1)   If  the  environmental  variable  LINES exists, it is
  492.        used to specify the number of rows in the screen.
  493.  
  494.  (2)   If the environmental variable COLUMNS exists,  it  is
  495.        used  to specify the number of columns in the screen.
  496.  
  497.  (3)   The TIOCGWINSZ _i_o_c_t_l(2) is attempted on the  standard
  498.        error file descriptor.
  499.  
  500.  (4)   The  termcap  entry  (or  terminfo  entry on System V
  501.        machines) is checked for the "li"  entry  (rows)  and
  502.        the "co" entry (columns).
  503.  
  504.  (5)   The  number  of  rows is set to 24, and the number of
  505.        columns is set to 80.
  506.  
  507.      If a window change size signal (SIGWINCH) is  received,
  508. the  new  window  size  is  retrieved  using  the TIOCGWINSZ
  509. _i_o_c_t_l(2) call, and all other information is ignored.
  510.  
  511. 66..  CChhaarraacctteerr DDiissppllaayy
  512.  
  513.      In both eexx and vvii printable characters  as  defined  by
  514. _i_s_p_r_i_n_t(3) are displayed using the local character set.
  515.  
  516.      Non-printable  characters, for which _i_s_c_n_t_r_l(3) returns
  517. true, and which are less than octal \040, are  displayed  as
  518. the  string "^<character>_"_, _w_h_e_r_e _<_c_h_a_r_a_c_t_e_r_> is the charac-
  519. ter that is the original character's value offset  from  the
  520. "@_"  _c_h_a_r_a_c_t_e_r_.   _F_o_r  _e_x_a_m_p_l_e_,  _t_h_e _o_c_t_a_l _c_h_a_r_a_c_t_e_r _\_0_0_1 _i_s
  521. _d_i_s_p_l_a_y_e_d _a_s _"_^_A".  If _i_s_c_n_t_r_l(3) returns true for the octal
  522. character  \177,  it  is  displayed as the string "^?_"_.  _A_l_l
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533. UUSSDD::1133--1100                                    VVii//EExx RReeffeerreennccee
  534.  
  535.  
  536. _o_t_h_e_r _c_h_a_r_a_c_t_e_r_s _a_r_e _d_i_s_p_l_a_y_e_d _a_s _e_i_t_h_e_r _h_e_x_a_d_e_c_i_m_a_l _v_a_l_u_e_s_,
  537. _i_n  _t_h_e _f_o_r_m _"_0_x_<_h_i_g_h_-_h_a_l_f_b_y_t_e_> _._._. _0_x_<_l_o_w_-_h_a_l_f_b_y_t_e_>", or as
  538. octal  values,  in  the  form  "\<high-one-or-two-bits>  ...
  539. \<low-three-bits>_"_.   _T_h_e  _d_i_s_p_l_a_y  _o_f _u_n_k_n_o_w_n _c_h_a_r_a_c_t_e_r_s _i_s
  540. _b_a_s_e_d _o_n _t_h_e _v_a_l_u_e _o_f _t_h_e ooccttaall _o_p_t_i_o_n_.
  541.  
  542.      In vvii command mode, the cursor is always positioned  on
  543. the  last  column  of characters which take up more than one
  544. column on the screen.  In vvii text input mode, the cursor  is
  545. positioned  on  the first column of characters which take up
  546. more than one column on the screen.
  547.  
  548. 77..  MMuullttiippllee SSccrreeeennss
  549.  
  550.      NNvvii supports multiple screens by  dividing  the  window
  551. into regions.  It also supports stacks of screens by permit-
  552. ting the user to change the set of  screens  that  are  cur-
  553. rently displayed.
  554.  
  555.      The EEddiitt, EExx, FFgg, NNeexxtt, PPrreevviioouuss, TTaagg and VViissuuaall (in vvii
  556. mode) commands divide the current screen into two regions of
  557. approximately equal size and then perform their usual action
  558. in a new screen area.  If the cursor is in the lower half of
  559. the  screen,  the  screen will split up, i.e. the new screen
  560. will be above the old one.  If the cursor is  in  the  upper
  561. half  of  the  screen,  the new screen will be below the old
  562. one.
  563.  
  564.      When more than one screen is editing a file, changes in
  565. any  screen  are  reflected in all other screens editing the
  566. same file.  Exiting a screen without saving any changes  (or
  567. explicitly  discarding  them)  is  permitted  until the last
  568. screen editing the file is exited, at which time the changes
  569. must be saved or discarded.
  570.  
  571.      The  rreessiizzee  command  permits  resizing  of  individual
  572. screens.  Screens may be grown, shrunk or set to an absolute
  573. number of rows.
  574.  
  575.      The ^^WW command is used to switch between screens.  Each
  576. ^^WW moves to the next lower screen in the window, or  to  the
  577. first screen in the window if there are no lower screens.
  578.  
  579.      The  bbgg  command "backgrounds" the current screen.  The
  580. screen disappears from the window, and the rows it  occupied
  581. are  taken  over by a neighboring screen.  It is an error to
  582. attempt to background the only screen in the window.
  583.  
  584.      The ddiissppllaayy ssccrreeeennss command displays the names  of  the
  585. files  associated  with  the current backgrounded screens in
  586. the window.
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599. VVii//EExx RReeffeerreennccee                                    UUSSDD::1133--1111
  600.  
  601.  
  602.      The ffgg [[ffiillee]] command moves the specified  screen  from
  603. the  list  of backgrounded screens to the foreground.  If no
  604. file argument is specified, the first screen on the list  is
  605. foregrounded.   By  default, foregrounding consists of back-
  606. grounding the current screen, and replacing its space in the
  607. window with the foregrounded screen.
  608.  
  609.      Capitalizing the first letter of the command, i.e.  FFgg,
  610. will foreground the backgrounded  screen  in  a  new  screen
  611. instead of swapping it with the current screen.
  612.  
  613.      If  the  last  foregrounded  screen  in  the  window is
  614. exited, and there are backgrounded screens, the first screen
  615. on the list of backgrounded screens takes over the window.
  616.  
  617. 88..  TTaaggss,, TTaagg SSttaacckkss,, aanndd CCssccooppee
  618.  
  619.      NNvvii  supports  the historic vvii tag command <<ccoonnttrrooll--]]>>,
  620. and the historic eexx tag command ttaagg.  These commands  change
  621. the  current file context to a new location, based on infor-
  622. mation found in the tags ffiilleess..  IIff yyoouu aarree uunnffaammiilliiaarr  wwiitthh
  623. tthheessee  ccoommmmaannddss,,  yyoouu sshhoouulldd rreevviieeww tthheeiirr ddeessccrriippttiioonn iinn tthhee
  624. eexx aanndd vvii ccoommmmaannddss sseeccttiioonn ooff tthhiiss mmaannuuaall..   FFoorr  aaddddiittiioonnaall
  625. iinnffoorrmmaattiioonn  oonn  ttaaggss  ffiilleess,, sseeee tthhee ddiissccuussssiioonn ooff tthhee ttaaggss
  626. eeddiitt ooppttiioonn aanndd tthhee ssyysstteemm _c_t_a_g_s((11)) mmaannuuaall ppaaggee..
  627.  
  628.      In addition, nnvvii supports the notion of "tags  stacks",
  629. using  the  <<ccoonnttrrooll--TT>>  command.   The  <<ccoonnttrrooll--TT>> command
  630. returns the user to the previous  context,  i.e.,  the  last
  631. place  from  which a <<ccoonnttrrooll--]]>> or ttaagg command was entered.
  632. These three commands provide the basic  functionality  which
  633. allows  you  to use vvii to review source code in a structured
  634. manner.
  635.  
  636.      NNvvii also provides two other basic eexx commands  for  tag
  637. support: ttaaggppoopp and ttaaggttoopp.  The ttaaggppoopp command is identical
  638. to the <<ccoonnttrrooll--TT>> command, with the additional  functional-
  639. ity  that  you may specify that modifications to the current
  640. file are to be discarded.  This cannot  be  done  using  the
  641. <<ccoonnttrrooll--TT>> command.  The ttaaggttoopp command discards all of the
  642. contexts that have been pushed onto the tag stack, returning
  643. to  the context from which the first <<ccoonnttrrooll--]]>> or ttaagg com-
  644. mand was entered.
  645.  
  646.      The historic _c_t_a_g_s(1) tags file format supports only  a
  647. single  location  per tag, normally the function declaration
  648. or  structure  or  string  definition.   More  sophisticated
  649. source  code tools often provide multiple locations per tag,
  650. e.g., a list of the places from which a function  is  called
  651. or  a  string  definition is used.  An example of this func-
  652. tionality is the System V source code tool, ccssccooppee.
  653.  
  654. CCssccooppee creates a database  of  information  on  source  code
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665. UUSSDD::1133--1122                                    VVii//EExx RReeffeerreennccee
  666.  
  667.  
  668. files, and supports a query language for that information as
  669. described in the _c_s_c_o_p_e(1) manual  page.   NNvvii  contains  an
  670. interface  to the ccssccooppee query language which permits you to
  671. query ccssccooppee and then sequentially step  through  the  loca-
  672. tions  in the sources files which ccssccooppee returns.  There are
  673. two nnvvii commands which support this ability to step  through
  674. multiple  locations.   They  are the eexx commands ttaaggnneexxtt and
  675. ttaaggpprreevv.  The ttaaggnneexxtt command moves to the next location for
  676. the  current tag.  The ttaaggpprreevv command moves to the previous
  677. location for the current tag.  (See the ttaaggnneexxtt and  ttaaggpprreevv
  678. command discussion in the eexx commands section of this manual
  679. for more information.)  At any time during  this  sequential
  680. walk, you may use the <<ccoonnttrrooll--]]>>, ttaagg or ccssccooppee commands to
  681. move to a new tag context, and then use the  <<ccoonnttrrooll--TT>>  or
  682. ttaaggppoopp  commands to return and continue stepping through the
  683. locations for this tag.  This is  similar  to  the  previous
  684. model  of  a simple tag stack, except that each entry in the
  685. tag stack may have more than one file  context  that  is  of
  686. interest.
  687.  
  688.      Although  there  is  no  widely  distributed version of
  689. _c_t_a_g_s(1) that creates tags files with multiple locations per
  690. tag,  nnvvii  has been written to understand the obvious exten-
  691. sion to the historic tags file format,  i.e.,  more  than  a
  692. single line in the tags file with the same initial tag name.
  693. If you wish to extend your  ccttaaggss  implementation  or  other
  694. tool  with which you build tags files, this extension should
  695. be simple and will require no changes to nnvvii.
  696.  
  697.      The nnvvii and ccssccooppee interface is based  on  the  new  eexx
  698. command ccssccooppee, which has five subcommands: aadddd, ffiinndd, hheellpp,
  699. kkiillll and rreesseett.  The subcommand ffiinndd itself has  eight  sub-
  700. commands: cc, dd, ee, ff, gg, ii, ss and tt.
  701.  
  702. ccss[[ccooppee]] aa[[dddd]] ffiillee
  703.      The  aadddd  command  attaches  to  the  specified  ccssccooppee
  704.      database.  The file name is expanded using the standard
  705.      filename  expansions.  If ffiillee is a directory, the file
  706.      "cscope.out" in that directory is used as the database.
  707.  
  708.      After  nnvvii  attaches  to a new database, all subsequent
  709. ccssccooppee queries will be asked of that database.   The  result
  710. of  any  single  query  is the collection of response to the
  711. query from all of the attached databases.
  712.  
  713. If the "CSCOPE_DIRS" environmental variable is set when  nnvvii
  714. is  run, it is expected to be a <colon> or <blank>-separated
  715. list of ccssccooppee databases or  directories  containing  ccssccooppee
  716. databases, to which the user wishes to attach.
  717.  
  718. ::ccss[[ccooppee]] ff[[iinndd]] cc||dd||ee||ff||gg||ii||ss||tt bbuuffffeerr||ppaatttteerrnn
  719.      The  ffiinndd  command is the ccssccooppee query command for nnvvii.
  720.      For this  command,  nnvvii  queries  all  attached  ccssccooppee
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731. VVii//EExx RReeffeerreennccee                                    UUSSDD::1133--1133
  732.  
  733.  
  734.      databases for the pattern.  If the pattern is a double-
  735.      quote character followed by a valid buffer name  (e.g.,
  736.      "<character>)),,  tthheenn  tthhee  ccoonntteennttss ooff tthhee nnaammeedd bbuuffffeerr
  737.      aarree uusseedd aass tthhee ppaatttteerrnn..  OOtthheerrwwiissee,, tthhee ppaatttteerrnn  iiss  aa
  738.      RReegguullaarr EExxpprreessssiioonn..
  739.  
  740.      TThhee  ffiinndd  ccoommmmaanndd ppuusshheess tthhee ccuurrrreenntt llooccaattiioonn oonnttoo tthhee
  741.      ttaaggss ssttaacckk,, aanndd sswwiittcchheess ttoo tthhee ffiirrsstt llooccaattiioonn  rreessuulltt--
  742.      iinngg  ffrroomm tthhee qquueerryy,, iiff tthhee qquueerryy rreettuurrnneedd aatt lleeaasstt oonnee
  743.      rreessuulltt..
  744.  
  745.      FFiillee nnaammeess rreettuurrnneedd bbyy tthhee ccssccooppee qquueerryy,, iiff  nnoott  aabbssoo--
  746.      lluuttee  ppaatthhss,, aarree sseeaarrcchheedd ffoorr rreellaattiivvee ttoo tthhee ddiirreeccttoorryy
  747.      wwhheerree tthhee ccssccooppee ddaattaabbaassee iiss llooccaatteedd..  IInn aaddddiittiioonn,,  iiff
  748.      tthhee  ffiillee  ""ccssccooppee..ttppaatthh"" aappppeeaarrss iinn tthhee ssaammee ddiirreeccttoorryy
  749.      aass tthhee ccssccooppee ddaattaabbaassee,, iitt iiss  eexxppeecctteedd  ttoo  ccoonnttaaiinn  aa
  750.      ccoolloonn--sseeppaarraatteedd  lliisstt  ooff  ddiirreeccttoorryy  nnaammeess wwhheerree ffiilleess
  751.      rreeffeerreenncceedd bbyy iittss aassssoocciiaatteedd  ccssccooppee  ddaattaabbaassee  mmaayy  bbee
  752.      ffoouunndd..
  753.  
  754.      TThhee ffiinndd ssuubbccoommmmaanndd iiss oonnee ooff tthhee ffoolllloowwiinngg::
  755.  
  756.      c        Find callers of the name.
  757.      d        Find all function calls made from name.
  758.      e        Find pattern.
  759.      f        Find files with name as substring.
  760.      g        Find definition of name.
  761.      i        Find files #including name.
  762.      s        Find all uses of name.
  763.      t        Find assignments to name.
  764.  
  765. ::ccss[[ccooppee]] hh[[eellpp]] [[ccoommmmaanndd]]
  766.      List the ccssccooppee commands, or optionally list usage help
  767.      for any single ccssccooppee command.
  768.  
  769. ::ddiissppllaayy cc[[oonnnneeccttiioonnss]]
  770.      Display the list of ccssccooppee databases to  which  nnvvii  is
  771.      currently connected.
  772.  
  773. ::ccss[[ccooppee]] kk[[iillll]] ##
  774.      Disconnect  from  a specific ccssccooppee database.  The con-
  775.      nection number is the one displayed by the  eexx  ddiissppllaayy
  776.      ccoonnnneeccttiioonnss command.
  777.  
  778. ::ccss[[ccooppee]] rr[[eesseett]]
  779.      Disconnect from all attached ccssccooppee databases.
  780.  
  781.      Cscope  is  not freely redistributable software, but is
  782. fairly inexpensive and easily available.  To purchase a copy
  783. of   ccssccooppee,   see   http://www.att.com/ssg/products/toolch-
  784. est.html.
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797. UUSSDD::1133--1144                                    VVii//EExx RReeffeerreennccee
  798.  
  799.  
  800. 99..  RReegguullaarr EExxpprreessssiioonnss aanndd RReeppllaacceemmeenntt SSttrriinnggss
  801.  
  802.      Regular expressions are used in line addresses, as  the
  803. first part of the eexx ssuubbssttiittuuttee, gglloobbaall, and vv commands, and
  804. in search patterns.
  805.  
  806.      The regular expressions  supported  by  eexx/vvii  are,  by
  807. default,  the Basic Regular Expressions (BRE's) described in
  808. the IEEE POSIX Standard 1003.2.  The eexxtteennddeedd option  causes
  809. all  regular  expressions  to be interpreted as the Extended
  810. Regular Expressions (ERE's) described by the same  standard.
  811. (See  _r_e___f_o_r_m_a_t(7)  for more information.)  Generally speak-
  812. ing, BRE's are the Regular Expressions found  in  _e_d(1)  and
  813. _g_r_e_p(1),  and  ERE's  are  the  Regular Expressions found in
  814. _e_g_r_e_p(1).
  815.  
  816.      The following is not intended to provide a  description
  817. of Regular Expressions.  The information here only describes
  818. strings and characters which have special  meanings  in  the
  819. eexx/vvii  version of RE's, or options which change the meanings
  820. of characters that normally have special meanings in RE's.
  821.  
  822.  (1)   An empty RE (e.g.  "//" or "??"  is equivalent to the
  823.        last RE used.
  824.  
  825.  (2)   The construct "\<" matches the beginning of a word.
  826.  
  827.  (3)   The construct "\>" matches the end of a word.
  828.  
  829.  (4)   The character "~" matches the replacement part of the
  830.        last ssuubbssttiittuuttee command.
  831.  
  832.      When the mmaaggiicc option is _n_o_t set, the  only  characters
  833. with  special  meanings are a "^_" _c_h_a_r_a_c_t_e_r _a_t _t_h_e _b_e_g_i_n_n_i_n_g
  834. _o_f _a_n _R_E_, _a _"_$" character at the  end  of  an  RE,  and  the
  835. escaping  character  "\_"_.   _T_h_e _c_h_a_r_a_c_t_e_r_s _"_.", "*_"_, _"_[" and
  836. "~_" _a_r_e _t_r_e_a_t_e_d _a_s _o_r_d_i_n_a_r_y _c_h_a_r_a_c_t_e_r_s _u_n_l_e_s_s _p_r_e_c_e_d_e_d _b_y  _a
  837. _"_\";  when preceded by a "\_" _t_h_e_y _r_e_g_a_i_n _t_h_e_i_r _s_p_e_c_i_a_l _m_e_a_n_-
  838. _i_n_g_.
  839.  
  840.      Replacement strings are the second part of a ssuubbssttiittuuttee
  841. command.
  842.  
  843.      The  character  "&" (or "\&" if the mmaaggiicc option is _n_o_t
  844. set) in the replacement string stands for the  text  matched
  845. by  the  RE  that  is being replaced.  The character "~_" _(_o_r
  846. _"_\_~" if the mmaaggiicc option is _n_o_t set) stands for the replace-
  847. ment  part  of  the previous ssuubbssttiittuuttee command.  It is only
  848. valid after a ssuubbssttiittuuttee command has been performed.
  849.  
  850.      The string "\#", where "#" is an integer value  from  1
  851. to  9,  stands for the text matched by the portion of the RE
  852. enclosed in the "#"'th  set  of  escaped  parentheses,  e.g.
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863. VVii//EExx RReeffeerreennccee                                    UUSSDD::1133--1155
  864.  
  865.  
  866. "\("  and  "\)".   For example, "s/abc\(.*\)def/\1/" deletes
  867. the strings "abc" and "def" from the matched pattern.
  868.  
  869.      The strings "\l", "\u", "\L" and "\U" can  be  used  to
  870. modify  the case of elements in the replacement string.  The
  871. string "\l" causes the next character  to  be  converted  to
  872. lowercase;  the  string "\u" behaves similarly, but converts
  873. to uppercase (e.g.  s/abc/\U&/ replaces the string abc  with
  874. ABC).   The  string  "\L" causes characters up to the end of
  875. the string or the next occurrence of  the  strings  "\e"  or
  876. "\E"  to  be converted to lowercase; the string "\U" behaves
  877. similarly, but converts to uppercase.
  878.  
  879.      If the entire replacement pattern is "%", then the last
  880. replacement pattern is used again.
  881.  
  882.      In  vvii,  inserting  a  <control-M> iinnttoo tthhee rreeppllaacceemmeenntt
  883. ssttrriinngg wwiillll ccaauussee tthhee mmaattcchheedd lliinnee  ttoo  bbee  sspplliitt  iinnttoo  ttwwoo
  884. lliinneess aatt tthhaatt ppooiinntt..  ((TThhee <<ccoonnttrrooll--MM>> will be discarded.)
  885.  
  886. 1100..  SSccrriippttiinngg LLaanngguuaaggeess
  887.  
  888.      The  nnvvii  editor  currently supports two scripting lan-
  889. guages, Tcl/Tk and Perl.  (Note that Perl4 isn't sufficient,
  890. and that the Perl5 used must be version 5.002 or later.  See
  891. the "BBuuiillddiinngg NNvvii" section for more information.
  892.  
  893.      The scripting language interface is still being  worked
  894. on,  therefore  the following information is probably incom-
  895. plete, probably wrong in cases, and likely to  change.   See
  896. the  perl_api and tcl_api source directories for more infor-
  897. mation.  As a quick reference, the following function  calls
  898. are provided for both the Perl and Tcl interfaces.  The Perl
  899. interface uses a slightly different naming convention,  e.g.
  900. ``viFindScreen'' is named ``VI::FindScreen''.
  901.  
  902. vviiFFiinnddSSccrreeeenn ffiillee
  903.      Return the screenIdaassssoocciiaatteedd ffiillee.
  904.  
  905. vviiAAppppeennddLLiinnee ssccrreeeennIIdd lliinneeNNuummbbeerr tteexxtt
  906.      Append text aass aa nneeww lliinnee aafftteerr lliinnee nnuummbbeerr lliinneeNNuummbbeerr,
  907.      in the screen screenId..
  908.  
  909. vviiDDeellLLiinnee ssccrreeeennIIdd lliinneeNNuumm
  910.      Delete the line lineNumber ffrroomm tthhee ssccrreeeenn ssccrreeeennIIdd.
  911.  
  912. vviiGGeettLLiinnee ssccrreeeennIIdd lliinneeNNuummbbeerr
  913.      Return the line lineNumber ffrroomm tthhee ssccrreeeenn ssccrreeeennIIdd.
  914.  
  915. vviiIInnsseerrttLLiinnee ssccrreeeennIIdd lliinneeNNuummbbeerr tteexxtt
  916.      Insert text aass aa nneeww lliinnee bbeeffoorree lliinnee nnuummbbeerr lliinneeNNuummbbeerr
  917.      in the screen screenId..
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929. UUSSDD::1133--1166                                    VVii//EExx RReeffeerreennccee
  930.  
  931.  
  932. vviiLLaassttLLiinnee ssccrreeeennIIdd
  933.      Return  the  line number of the last line in the screen
  934.      screenId..
  935.  
  936. vviiSSeettLLiinnee ssccrreeeennIIdd lliinneeNNuummbbeerr tteexxtt
  937.      Change the line lineNumber iinn tthhee  ssccrreeeenn  ssccrreeeennIIdd  to
  938.      match the specified text..
  939.  
  940. vviiGGeettMMaarrkk ssccrreeeennIIdd mmaarrkk
  941.      Return  the  current  line and column for the specified
  942.      mark ffrroomm tthhee ssccrreeeenn ssccrreeeennIIdd.
  943.  
  944. vviiSSeettMMaarrkk ssccrreeeennIIdd mmaarrkk lliinnee ccoolluummnn
  945.      Set the specified mark ttoo bbee aatt lliinnee lliinnee, column  col-
  946.      umn,, iinn tthhee ssccrreeeenn ssccrreeeennIIdd.
  947.  
  948. vviiGGeettCCuurrssoorr ssccrreeeennIIdd
  949.      Return  the  current  line and column for the cursor in
  950.      the screen screenId..
  951.  
  952. vviiSSeettCCuurrssoorr ssccrreeeennIIdd lliinnee ccoolluummnn
  953.      Set the cursor in the screen screenId ttoo tthhee  ssppeecciiffiieedd
  954.      lliinnee and column..
  955.  
  956. vviiMMssgg ssccrreeeennIIdd tteexxtt
  957.      Display  the  specified  text  aass  aa  vvii mmeessssaaggee iinn tthhee
  958.      ssccrreeeenn ssccrreeeennIIdd.
  959.  
  960. vviiNNeewwSSccrreeeenn ssccrreeeennIIdd [[ffiillee]]
  961.      Create a new screen.
  962.  
  963. vviiEEnnddSSccrreeeenn ssccrreeeennIIdd
  964.      Exit the screen screenId..
  965.  
  966. vviiSSwwiittcchhSSccrreeeenn ssccrreeeennIIdd ssccrreeeennIIdd
  967.      Switch from the screen screenId ttoo tthhee ssccrreeeenn ssccrreeeennIIdd.
  968.  
  969. vviiMMaappKKeeyy ssccrreeeennIIdd kkeeyy ttccllpprroocc
  970.      Map the specified key iinn tthhee ssccrreeeenn ssccrreeeennIIdd to the Tcl
  971.      procedure tclproc..
  972.  
  973. vviiUUnnmmMMaappKKeeyy ssccrreeeennIIdd kkeeyy
  974.      Unmap the specified key iinn tthhee ssccrreeeenn ssccrreeeennIIdd
  975.  
  976. vviiGGeettOOpptt ssccrreeeennIIdd ooppttiioonn
  977.      Return the value  of  the  specified  option  ffrroomm  tthhee
  978.      ssccrreeeenn ssccrreeeennIIdd.
  979.  
  980. vviiSSeettOOpptt ssccrreeeennIIdd ccoommmmaanndd
  981.      Set one or more options in the screen screenId..
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995. VVii//EExx RReeffeerreennccee                                    UUSSDD::1133--1177
  996.  
  997.  
  998. 1111..  GGeenneerraall EEddiittoorr DDeessccrriippttiioonn
  999.  
  1000.      When  eexx or vvii are executed, the text of a file is read
  1001. (or a temporary file  is  created),  and  then  all  editing
  1002. changes  happen  within the context of the copy of the file.
  1003. _N_o _c_h_a_n_g_e_s _a_f_f_e_c_t _t_h_e _a_c_t_u_a_l _f_i_l_e _u_n_t_i_l _t_h_e _f_i_l_e _i_s  _w_r_i_t_t_e_n
  1004. _o_u_t,  either  using a write command or another command which
  1005. is affected by the aauuttoowwrriittee option.
  1006.  
  1007.      All files are locked (using the  _f_l_o_c_k(2)  or  _f_c_n_t_l(2)
  1008. interfaces)  during the edit session, to avoid inadvertently
  1009. making modifications to multiple copies of the file.   If  a
  1010. lock  cannot  be obtained for a file because it is locked by
  1011. another process, the edit session is read-only  (as  if  the
  1012. rreeaaddoonnllyy  option  or  the --RR flag had been specified).  If a
  1013. lock cannot be obtained for other reasons, the edit  session
  1014. will  continue,  but  the  file  status information (see the
  1015. <<ccoonnttrrooll--GG>> command) will reflect this fact.
  1016.  
  1017.      Both eexx and vvii are modeful editors, i.e. they have  two
  1018. modes,  "command" mode and "text input" mode.  The former is
  1019. intended to permit you  to  enter  commands  which  modifies
  1020. already existing text.  The latter is intended to permit you
  1021. to enter new text.  When eexx first starts running, it  is  in
  1022. command  mode, and usually displays a prompt (see the pprroommpptt
  1023. option for more information).  The prompt is a single  colon
  1024. (":""))  cchhaarraacctteerr..   TThheerree  aarree tthhrreeee ccoommmmaannddss tthhaatt sswwiittcchh eexx
  1025. iinnttoo tteexxtt iinnppuutt mmooddee:: aappppeenndd,, cchhaannggee aanndd  iinnsseerrtt..   OOnnccee  iinn
  1026. iinnppuutt  mmooddee,, eenntteerriinngg aa lliinnee ccoonnttaaiinniinngg oonnllyy aa ssiinnggllee ppeerriioodd
  1027. ((""..""))  eennddss tteexxtt iinnppuutt mmooddee aanndd  rreettuurrnnss  ttoo  ccoommmmaanndd  mmooddee,,
  1028. wwhheerree tthhee pprroommpptt iiss rreeddiissppllaayyeedd..
  1029.  
  1030.      When  vvii first starts running, it is in command mode as
  1031. well.  There are eleven commands that switch  vvii  into  text
  1032. input  mode:  AA,  aa,  CC, cc, II, ii, OO, oo, RR, SS and ss.  Once in
  1033. input mode, entering an <escape> cchhaarraacctteerr eennddss  tteexxtt  iinnppuutt
  1034. mmooddee aanndd rreettuurrnnss ttoo ccoommmmaanndd mmooddee..
  1035.  
  1036.      EExx/vvii  present  three different interfaces to editing a
  1037. file.  EExx presents a line oriented interface.  VVii presents a
  1038. full  screen  display  oriented  interface,  also  known  as
  1039. "visual mode".  In addition, there is a  third  mode,  "open
  1040. mode",  which is line oriented, but supports cursor movement
  1041. and editing within the displayed line, similarly  to  visual
  1042. mode.  Open mode is not yet implemented in nnvvii.
  1043.  
  1044.      The  following  words have special meanings in both the
  1045. eexx and vvii command descriptions:
  1046.  
  1047. <<iinntteerrrruupptt>>
  1048.      The interrupt character is used to interrupt  the  cur-
  1049.      rent operation.  Normally <control-C>,, wwhhaatteevveerr cchhaarraacc--
  1050.      tteerr iiss sseett ffoorr tthhee ccuurrrreenntt tteerrmmiinnaall iiss uusseedd..
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061. UUSSDD::1133--1188                                    VVii//EExx RReeffeerreennccee
  1062.  
  1063.  
  1064. <<lliitteerraall--nneexxtt>>
  1065.      The literal next character is used to escape the subse-
  1066.      quent character from any special meaning.  This charac-
  1067.      ter is always <control-V>..  IIff tthhee tteerrmmiinnaall iiss nnoott  sseett
  1068.      uupp  ttoo  ddoo  XXOONN//XXOOFFFF  ffllooww ccoonnttrrooll,, tthheenn <<ccoonnttrrooll--QQ>> is
  1069.      used to mean literal next as well.
  1070.  
  1071. ccuurrrreenntt ppaatthhnnaammee
  1072.      The pathname of the file currently being edited by  vi.
  1073.      When the percent character ("%"")) aappppeeaarrss iinn aa ffiillee nnaammee
  1074.      eenntteerreedd aass ppaarrtt  ooff  aann  eexx  ccoommmmaanndd  aarrgguummeenntt,,  iitt  iiss
  1075.      rreeppllaacceedd  bbyy  tthhee ccuurrrreenntt ppaatthhnnaammee..  ((TThhee ""%%"" cchhaarraacctteerr
  1076.      ccaann bbee eessccaappeedd bbyy pprreecceeddiinngg iitt wwiitthh aa bbaacckkssllaasshh..))
  1077.  
  1078. aalltteerrnnaattee ppaatthhnnaammee
  1079.      The name of the last file name mentioned in an eexx  com-
  1080.      mand,  or,  the  previous  current pathname if the last
  1081.      file mentioned becomes the current file.  When the hash
  1082.      mark  character ("#"")) aappppeeaarrss iinn aa ffiillee nnaammee eenntteerreedd aass
  1083.      ppaarrtt ooff aann eexx ccoommmmaanndd aarrgguummeenntt,, iitt iiss rreeppllaacceedd  bbyy  tthhee
  1084.      aalltteerrnnaattee  ppaatthhnnaammee..  ((TThhee ""##"" cchhaarraacctteerr ccaann bbee eessccaappeedd
  1085.      bbyy pprreecceeddiinngg iitt wwiitthh aa bbaacckkssllaasshh..))
  1086.  
  1087. bbuuffffeerr
  1088.      One of a number of named areas  for  saving  copies  of
  1089.      text.  Commands that change or delete text can save the
  1090.      changed or deleted text into  a  specific  buffer,  for
  1091.      later use, if the command allows it (i.e. the eexx cchhaannggee
  1092.      command  cannot  save  the  changed  text  in  a  named
  1093.      buffer).   Buffers  are  named with a single character,
  1094.      preceded by a double quote, e.g.   "<character>  iinn  vvii
  1095.      aanndd wwiitthhoouutt tthhee ddoouubbllee qquuoottee,, ee..gg..  <<cchhaarraacctteerr>>,, iinn eexx..
  1096.      ((TThhee  ddoouubbllee  qquuoottee  iissnn''tt  nneecceessssaarryy  ffoorr  eexx  bbeeccaauussee
  1097.      bbuuffffeerrss nnaammeess aarree ddeennootteedd bbyy tthheeiirr ppoossiittiioonn iinn tthhee ccoomm--
  1098.      mmaanndd lliinnee..))  HHiissttoorriicc iimmpplleemmeennttaattiioonnss ooff eexx//vvii  lliimmiitteedd
  1099.      <<cchhaarraacctteerr>>  ttoo  tthhee  aallpphhaannuummeerriicc  cchhaarraacctteerrss;; nneexx//nnvvii
  1100.      ppeerrmmiittss tthhee uussee ooff aannyy cchhaarraacctteerr wwiitthhoouutt aannootthheerr  mmeeaann--
  1101.      iinngg iinn tthhee ppoossiittiioonn wwhheerree aa bbuuffffeerr nnaammee iiss eexxppeecctteedd..
  1102.  
  1103.      BBuuffffeerrss  nnaammeedd  bbyy uuppppeerrccaassee cchhaarraacctteerrss aarree tthhee ssaammee aass
  1104.      bbuuffffeerrss nnaammeedd bbyy lloowweerrccaassee cchhaarraacctteerrss,, ee..gg.. tthhee  bbuuffffeerr
  1105.      nnaammeedd  bbyy  tthhee EEnngglliisshh cchhaarraacctteerr ""AA"" iiss tthhee ssaammee aass tthhee
  1106.      bbuuffffeerr nnaammeedd bbyy tthhee cchhaarraacctteerr ""aa"",, wwiitthh  tthhee  eexxcceeppttiioonn
  1107.      tthhaatt,, iiff tthhee bbuuffffeerr ccoonntteennttss aarree bbeeiinngg cchhaannggeedd ((aass wwiitthh
  1108.      aa tteexxtt ddeelleettiioonn oorr vvii  cchhaannggee  ccoommmmaanndd)),,  tthhee  tteexxtt  iiss
  1109.      _a_p_p_e_n_d_e_d  ttoo  tthhee bbuuffffeerr,, iinnsstteeaadd ooff rreeppllaacciinngg tthhee ccuurr--
  1110.      rreenntt ccoonntteennttss..
  1111.  
  1112.      TThhee  bbuuffffeerrss  nnaammeedd  bbyy  tthhee  nnuummeerriicc  cchhaarraacctteerrss   ((iinn
  1113.      EEnngglliisshh,, ""11_" _t_h_r_o_u_g_h _"_9"")),, aarree ssppeecciiaall..  IIff aa rreeggiioonn ooff
  1114.      tteexxtt iinncclluuddiinngg cchhaarraacctteerrss ffrroomm mmoorree tthhaann oonnee lliinnee,, oorr aa
  1115.      ssiinnggllee  lliinnee ooff tteexxtt ssppeecciiffiieedd bbyy uussiinngg aa lliinnee--oorriieenntteedd
  1116.      mmoottiioonn,, iiss cchhaannggeedd oorr ddeelleetteedd iinn tthhee ffiillee uussiinngg tthhee  vvii
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127. VVii//EExx RReeffeerreennccee                                    UUSSDD::1133--1199
  1128.  
  1129.  
  1130.      cchhaannggee oorr ddeelleettee ccoommmmaannddss,, aa ccooppyy ooff tthhee tteexxtt iiss ppllaacceedd
  1131.      iinnttoo tthhee nnuummeerriicc bbuuffffeerr ""11"",,  rreeggaarrddlleessss  ooff  tthhee  uusseerr
  1132.      ssppeecciiffyyiinngg  aannootthheerr  bbuuffffeerr  iinn  wwhhiicchh  ttoo ssaavvee iitt..  IInn
  1133.      aaddddiittiioonn,, tthheerree aarree aa ffeeww ccoommmmaannddss wwhhiicchh,, wwhheenn uusseedd  aass
  1134.      aa mmoottiioonn wwiitthh tthhee vvii cchhaannggee aanndd ddeelleettee ccoommmmaannddss,, _a_l_w_a_y_s
  1135.      ccooppyy tthhee ssppeecciiffiieedd rreeggiioonn  ooff  tteexxtt  iinnttoo  tthhee  nnuummeerriicc
  1136.      bbuuffffeerrss  rreeggaarrddlleessss  ooff tthhee rreeggiioonn iinncclluuddiinngg cchhaarraacctteerrss
  1137.      ffrroomm mmoorree tthhaann oonnee lliinnee..  TThheessee ccoommmmaannddss aarree::
  1138.  
  1139.  
  1140.       <<ccoonnttrrooll--AA>>   %%   ((   ))
  1141.      ``<<cchhaarraacctteerr>>   //   ??   NN
  1142.                 nn   {{   }}
  1143.  
  1144.  
  1145.      Before this copy is  done,  the  previous  contents  of
  1146.      buffer  "1""  aarree mmoovveedd iinnttoo bbuuffffeerr ""22", "2"" iinnttoo bbuuffffeerr
  1147.      ""33", and so on.  The contents of buffer  "9""  aarree  ddiiss--
  1148.      ccaarrddeedd..   IInn vvii,, tteexxtt mmaayy bbee eexxpplliicciittllyy ssttoorreedd iinnttoo tthhee
  1149.      nnuummeerriicc bbuuffffeerrss..  IInn tthhiiss  ccaassee,,  tthhee  bbuuffffeerr  rroottaattiioonn
  1150.      ddeessccrriibbeedd  aabboovvee  ooccccuurrss  bbeeffoorree tthhee rreeppllaacceemmeenntt ooff tthhee
  1151.      bbuuffffeerr''ss ccoonntteennttss..  TThhee nnuummeerriicc bbuuffffeerrss aarree oonnllyy aavvaaiill--
  1152.      aabbllee  iinn  vviissuuaall aanndd ooppeenn mmooddeess,, aanndd aarree nnoott aacccceessssiibbllee
  1153.      bbyy eexx iinn aannyy wwaayy,, aalltthhoouugghh cchhaannggeedd aanndd ddeelleetteedd tteexxtt  iiss
  1154.      ssttiillll ssttoorreedd tthheerree wwhhiillee iinn eexx mmooddee..
  1155.  
  1156.      WWhheenn  aa vvii ccoommmmaanndd ssyynnooppssiiss sshhoowwss bbootthh aa [[bbuuffffeerr]] aanndd aa
  1157.      [[ccoouunntt]],, tthheeyy mmaayy bbee pprreesseenntteedd iinn aannyy oorrddeerr..
  1158.  
  1159.      FFiinnaallllyy,, aallll bbuuffffeerrss aarree eeiitthheerr ""lliinnee""  oorr  ""cchhaarraacctteerr""
  1160.      oorriieenntteedd..   AAllll  eexx  ccoommmmaannddss  wwhhiicchh  ssttoorree  tteexxtt  iinnttoo
  1161.      bbuuffffeerrss aarree lliinnee  oorriieenntteedd..   SSoommee  vvii  ccoommmmaannddss  wwhhiicchh
  1162.      ssttoorree tteexxtt iinnttoo bbuuffffeerrss aarree lliinnee oorriieenntteedd,, aanndd ssoommee aarree
  1163.      cchhaarraacctteerr oorriieenntteedd;; tthhee ddeessccrriippttiioonn ffoorr eeaacchh aapppplliiccaabbllee
  1164.      vvii ccoommmmaanndd nnootteess wwhheetthheerr tteexxtt ccooppiieedd iinnttoo bbuuffffeerrss uussiinngg
  1165.      tthhee ccoommmmaanndd iiss lliinnee oorr cchhaarraacctteerr  oorriieenntteedd..   IInn  aaddddii--
  1166.      ttiioonn,,  tthhee vvii ccoommmmaanndd ddiissppllaayy bbuuffffeerrss ddiissppllaayyss tthhee ccuurr--
  1167.      rreenntt oorriieennttaattiioonn ffoorr eeaacchh bbuuffffeerr..  GGeenneerraallllyy,, tthhee  oonnllyy
  1168.      iimmppoorrttaannccee  aattttaacchheedd ttoo tthhiiss oorriieennttaattiioonn iiss tthhaatt iiff tthhee
  1169.      bbuuffffeerr iiss ssuubbsseeqquueennttllyy iinnsseerrtteedd  iinnttoo  tthhee  tteexxtt,,  lliinnee
  1170.      oorriieenntteedd bbuuffffeerrss ccrreeaattee nneeww lliinneess ffoorr eeaacchh ooff tthhee lliinneess
  1171.      tthheeyy ccoonnttaaiinn,, aanndd cchhaarraacctteerr oorriieenntteedd bbuuffffeerrss ccrreeaattee nneeww
  1172.      lliinneess ffoorr aannyy lliinneess _o_t_h_e_r tthhaann tthhee ffiirrsstt aanndd llaasstt lliinneess
  1173.      tthheeyy ccoonnttaaiinn..  TThhee ffiirrsstt aanndd llaasstt  lliinneess  aarree  iinnsseerrtteedd
  1174.      iinnttoo  tthhee tteexxtt aatt tthhee ccuurrrreenntt ccuurrssoorr ppoossiittiioonn,, bbeeccoommiinngg
  1175.      ppaarrtt ooff tthhee ccuurrrreenntt lliinnee..  IIff tthheerree iiss  mmoorree  tthhaann  oonnee
  1176.      lliinnee  iinn  tthhee  bbuuffffeerr,, hhoowweevveerr,, tthhee ccuurrrreenntt lliinnee iittsseellff
  1177.      wwiillll bbee sspplliitt..
  1178.  
  1179. uunnnnaammeedd bbuuffffeerr
  1180.      The unnamed buffer is a text storage area which is used
  1181.      by  commands  that  use  or operate on a buffer when no
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193. UUSSDD::1133--2200                                    VVii//EExx RReeffeerreennccee
  1194.  
  1195.  
  1196.      buffer is specified by the user.  If the command stores
  1197.      text into a buffer, the text is stored into the unnamed
  1198.      buffer even if a buffer is also specified by the  user.
  1199.      It  is  not  possible  to  append  text  to the unnamed
  1200.      buffer.  If text is appended to  a  named  buffer,  the
  1201.      named  buffer contains both the old and new text, while
  1202.      the unnamed buffer contains only the new  text.   There
  1203.      is no way to explicitly reference the unnamed buffer.
  1204.  
  1205.      Historically,  the  contents of the unnamed buffer were
  1206.      discarded by many different commands,  even  ones  that
  1207.      didn't  store text into it.  NNeexx/nnvvii never discards the
  1208.      contents of the unnamed buffer until new text  replaces
  1209.      them.
  1210.  
  1211. wwhhiitteessppaaccee
  1212.      The characters <tab> and <space>.
  1213.  
  1214. <<ccaarrrriiaaggee--rreettuurrnn>>
  1215.      The  character  represented  by  an  ASCII <control-M>..
  1216.      TThhiiss cchhaarraacctteerr iiss aallmmoosstt aallwwaayyss ttrreeaatteedd iiddeennttiiccaallllyy  ttoo
  1217.      aa  <<nneewwlliinnee>>  character,  but differs in that it can be
  1218.      escaped into the file text or into a command.
  1219.  
  1220. <<nneewwlliinnee>>
  1221.      The character  represented  by  an  ASCII  <control-J>..
  1222.      TThhiiss  cchhaarraacctteerr iiss aallmmoosstt aallwwaayyss ttrreeaatteedd iiddeennttiiccaallllyy ttoo
  1223.      aa <<ccoonnttrrooll--MM>> character, but differs in that it  cannot
  1224.      be escaped into the file text or into a command.
  1225.  
  1226. 1122..  VVii DDeessccrriippttiioonn
  1227.  
  1228.      VVii  takes  up  the  entire screen to display the edited
  1229. file, except for the bottom line of the screen.  The  bottom
  1230. line  of the screen is used to enter eexx commands, and for vvii
  1231. error and informational messages.  If no  other  information
  1232. is being displayed, the default display can show the current
  1233. cursor row and cursor column, an indication of  whether  the
  1234. file  has been modified, and the current mode of the editor.
  1235. See the rruulleerr and sshhoowwmmooddee options for more information.
  1236.  
  1237.      Empty lines do not have any special  representation  on
  1238. the  screen,  but  lines  on the screen that would logically
  1239. come after the end of the file are  displayed  as  a  single
  1240. tilde ("~") character.  To differentiate between empty lines
  1241. and lines consisting of only whitespace characters, use  the
  1242. lliisstt  option.  Historically, implementations of vvii have also
  1243. displayed some lines as single  asterisk  ("@""))  cchhaarraacctteerrss..
  1244. TThheessee  wweerree  lliinneess  tthhaatt  wweerree nnoott ccoorrrreeccttllyy ddiissppllaayyeedd,, ii..ee..
  1245. lliinneess oonn tthhee ssccrreeeenn tthhaatt ddiidd nnoott ccoorrrreessppoonndd ttoo lliinneess iinn  tthhee
  1246. ffiillee,,  oorr lliinneess tthhaatt ddiidd nnoott ffiitt oonn tthhee ccuurrrreenntt ssccrreeeenn..  NNvvii
  1247. nneevveerr ddiissppllaayyss lliinneess iinn tthhiiss ffaasshhiioonn..
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259. VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))                      UUSSDD::1133--2211
  1260.  
  1261.  
  1262.      VVii is a modeful editor, i.e. it has  two  modes,  "com-
  1263. mand"  mode and "text input" mode.  When vvii first starts, it
  1264. is in command mode.  There are several commands that  change
  1265. vvii  into text input mode.  The <escape> cchhaarraacctteerr iiss uusseedd ttoo
  1266. rreessoollvvee tthhee tteexxtt iinnppuutt iinnttoo tthhee ffiillee,,  aanndd  eexxiitt  bbaacckk  iinnttoo
  1267. ccoommmmaanndd  mmooddee..   IInn  vvii  ccoommmmaanndd  mmooddee,, tthhee ccuurrssoorr iiss aallwwaayyss
  1268. ppoossiittiioonneedd oonn tthhee llaasstt ccoolluummnn ooff cchhaarraacctteerrss  wwhhiicchh  ttaakkee  uupp
  1269. mmoorree tthhaann oonnee ccoolluummnn oonn tthhee ssccrreeeenn..  IInn vvii tteexxtt iinnsseerrtt mmooddee,,
  1270. tthhee ccuurrssoorr iiss ppoossiittiioonneedd oonn tthhee ffiirrsstt ccoolluummnn  ooff  cchhaarraacctteerrss
  1271. wwhhiicchh ttaakkee uupp mmoorree tthhaann oonnee ccoolluummnn oonn tthhee ssccrreeeenn..
  1272.  
  1273.      When  positioning  the cursor to a new line and column,
  1274. the type of movement is defined by the distance to  the  new
  1275. cursor  position.   If the new position is close, the screen
  1276. is scrolled to the new location.  If the new position is far
  1277. away, the screen is repainted so that the new position is on
  1278. the screen.  If the screen is scrolled, it is moved a  mini-
  1279. mal  amount,  and the cursor line will usually appear at the
  1280. top or bottom of the screen.  If the  screen  is  repainted,
  1281. the  cursor  line  will  appear in the center of the screen,
  1282. unless the cursor is sufficiently close to the beginning  or
  1283. end  of the file that this isn't possible.  If the lleeffttrriigghhtt
  1284. option is set, the screen may be scrolled or repainted in  a
  1285. horizontal direction as well as in a vertical one.
  1286.  
  1287.      A  major difference between the historical vvii presenta-
  1288. tion and nnvvii is in the scrolling and screen  oriented  posi-
  1289. tion  commands, <<ccoonnttrrooll--BB>>, <<ccoonnttrrooll--DD>>, <<ccoonnttrrooll--EE>>, <<ccoonn--
  1290. ttrrooll--FF>>, <<ccoonnttrrooll--UU>>, <<ccoonnttrrooll--YY>>, HH, LL and MM.  In  histori-
  1291. cal  implementations of vvii, these commands acted on physical
  1292. (as opposed to logical, or screen) lines.   For  lines  that
  1293. were  sufficiently  long  in  relation  to  the  size of the
  1294. screen, this meant that single line  scroll  commands  might
  1295. repaint  the  entire screen, scrolling or screen positioning
  1296. commands might not change the screen or move the  cursor  at
  1297. all,  and  some  lines  simply  could not be displayed, even
  1298. though vvii would edit the file that contained them.  In  nnvvii,
  1299. these  commands  act on logical, i.e. screen lines.  You are
  1300. unlikely to notice any difference  unless  you  are  editing
  1301. files with lines significantly longer than a screen width.
  1302.  
  1303.      VVii  keeps track of the currently "most attractive" cur-
  1304. sor position.  Each command description (for  commands  that
  1305. alter  the current cursor position), specifies if the cursor
  1306. is set to a specific location in the line, or if it is moved
  1307. to  the "most attractive cursor position".  The latter means
  1308. that the cursor is moved to the cursor position that is hor-
  1309. izontally  as  close as possible to the current cursor posi-
  1310. tion.  If the current line is shorter than the cursor  posi-
  1311. tion  vvii  would select, the cursor is positioned on the last
  1312. character in the line.  (If the line is empty, the cursor is
  1313. positioned  on  the first column of the line.)  If a command
  1314. moves the cursor to the most attractive  position,  it  does
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325. UUSSDD::1133--2222                      VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))
  1326.  
  1327.  
  1328. not  alter  the  current  cursor  position, and a subsequent
  1329. movement will again attempt to move the cursor to that posi-
  1330. tion.  Therefore, although a movement to a line shorter than
  1331. the currently most attractive position will cause the cursor
  1332. to  move to the end of that line, a subsequent movement to a
  1333. longer line will cause the cursor to move back to  the  most
  1334. attractive position.
  1335.  
  1336.      In  addition,  the $$ command makes the end of each line
  1337. the most attractive cursor position rather than  a  specific
  1338. column.
  1339.  
  1340.      Each  vvii command described below notes where the cursor
  1341. ends up after it is executed.  This position is described in
  1342. terms of characters on the line, i.e.  "the previous charac-
  1343. ter", or, "the last character in  the  line".   This  is  to
  1344. avoid  needing  to  continually refer to on what part of the
  1345. character the cursor rests.
  1346.  
  1347.      The following words have special meaning  for  vvii  com-
  1348. mands.
  1349.  
  1350. pprreevviioouuss ccoonntteexxtt
  1351.      The  position  of  the  cursor before the command which
  1352.      caused the last absolute movement was  executed.   Each
  1353.      vvii  command  described in the next section that is con-
  1354.      sidered an absolute movement is so noted.  In addition,
  1355.      specifying  _a_n_y  address to an eexx command is considered
  1356.      an absolute movement.
  1357.  
  1358. mmoottiioonn
  1359.      A second vvii command can be used as an optional trailing
  1360.      argument  to the vvii <<, >>, !!, cc, dd, yy, and (depending on
  1361.      the ttiillddeeoopp option) ~~ commands.  This command indicates
  1362.      the  end  of  the region of text that's affected by the
  1363.      command.  The motion command may be either the  command
  1364.      character  repeated (in which case it means the current
  1365.      line) or a cursor  movement  command.   In  the  latter
  1366.      case,  the  region  affected by the command is from the
  1367.      starting or stopping cursor position which comes  first
  1368.      in  the  file,  to  immediately  before the starting or
  1369.      stopping cursor position which comes later in the file.
  1370.      Commands  that operate on lines instead of using begin-
  1371.      ning and ending cursor positions operate on all of  the
  1372.      lines  that  are wholly or partially in the region.  In
  1373.      addition, some  other  commands  become  line  oriented
  1374.      depending on where in the text they are used.  The com-
  1375.      mand descriptions below note these special cases.
  1376.  
  1377.      The following commands may all be used as motion compo-
  1378.      nents for vvii commands:
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391. VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))                      UUSSDD::1133--2233
  1392.  
  1393.  
  1394.      <control-A>    <control-H>   <control-J>   <control-M>
  1395.      <control-N>    <control-P>       <space>             $
  1396.                %   '<character>             (             )
  1397.                +              ,             -             /
  1398.                0              ;             ?             B
  1399.                E              F             G             H
  1400.                L              M             N             T
  1401.                W             [[            ]]             ^
  1402.                _   `<character>             b             e
  1403.                f              h             j             k
  1404.                l              n             t             w
  1405.                {              |             }
  1406.  
  1407.  
  1408.      The  optional count prefix available for some of the vvii
  1409.      commands that take motion commands, or the count prefix
  1410.      available  for  the vvii commands that are used as motion
  1411.      components, may be included and  is  _a_l_w_a_y_s  considered
  1412.      part of the motion argument.  For example, the commands
  1413.      "c2w_" _a_n_d _"_2_c_w" are equivalent, and the region affected
  1414.      by the cc command is two words of text.  In addition, if
  1415.      the optional count prefix is specified for both the  vvii
  1416.      command  and its motion component, the effect is multi-
  1417.      plicative and is considered part of  the  motion  argu-
  1418.      ment.   For  example, the commands "4cw"" aanndd ""22cc22ww" are
  1419.      equivalent, and the region affected by the cc command is
  1420.      four words of text.
  1421.  
  1422. ccoouunntt
  1423.      A  positive number used as an optional argument to most
  1424.      commands, either to give a size or a position (for dis-
  1425.      play  or  movement commands), or as a repeat count (for
  1426.      commands that modify  text).   The  count  argument  is
  1427.      always  optional  and  defaults  to  1 unless otherwise
  1428.      noted in the command description.
  1429.  
  1430.      When a vvii command synopsis shows both  a  [buffer]  aanndd
  1431.      [[ccoouunntt]], they may be presented in any order.
  1432.  
  1433. wwoorrdd
  1434.      Generally, in languages where it is applicable, vvii rec-
  1435.      ognizes two kinds of words.  First, a sequence of  let-
  1436.      ters,  digits  and  underscores, delimited at both ends
  1437.      by: characters other than letters,  digits,  or  under-
  1438.      scores,  the beginning or end of a line, and the begin-
  1439.      ning or end of the file.  Second, a sequence of charac-
  1440.      ters   other  than  letters,  digits,  underscores,  or
  1441.      whitespace characters, delimited at  both  ends  by:  a
  1442.      letter, digit, underscore, or whitespace character, the
  1443.      beginning or end of a line, and the beginning or end of
  1444.      the  file.   For  example, the characters " !@#abc$%^ ""
  1445.      ccoonnttaaiinn tthhrreeee wwoorrddss:: ""!!@@##", "abc"" aanndd ""$$%%^^".
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457. UUSSDD::1133--2244                      VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))
  1458.  
  1459.  
  1460.      Groups of empty lines (or lines containing only whites-
  1461.      pace characters) are treated as a single word.
  1462.  
  1463. bbiiggwwoorrdd
  1464.      A  set  of  non-whitespace characters preceded and fol-
  1465.      lowed by whitespace characters or the beginning or  end
  1466.      of  the  file  or  line.  For example, the characters "
  1467.      !@#abc$%^ "" ccoonnttaaiinn oonnee bbiiggwwoorrdd:: ""!!@@##aabbcc$$%%^^".
  1468.  
  1469.      Groups of empty lines (or lines containing only whites-
  1470.      pace characters) are treated as a single bigword.
  1471.  
  1472. ppaarraaggrraapphh
  1473.      An  area  of text that begins with either the beginning
  1474.      of a file, an empty line, or a  section  boundary,  and
  1475.      continues until either an empty line, section boundary,
  1476.      or the end of the file.
  1477.  
  1478.      Groups of empty lines (or lines containing only whites-
  1479.      pace characters) are treated as a single paragraph.
  1480.  
  1481.      Additional  paragraph  boundaries  can be defined using
  1482.      the ppaarraaggrraapphhss option.
  1483.  
  1484. sseeccttiioonn
  1485.      An area of text that starts with the beginning  of  the
  1486.      file  or  a line whose first character is an open brace
  1487.      ("{"")) aanndd ccoonnttiinnuueess uunnttiill tthhee nneexxtt sseeccttiioonn oorr  tthhee  eenndd
  1488.      ooff tthhee ffiillee..
  1489.  
  1490.      AAddddiittiioonnaall  sseeccttiioonn bboouunnddaarriieess ccaann bbee ddeeffiinneedd uussiinngg tthhee
  1491.      sseeccttiioonnss ooppttiioonn..
  1492.  
  1493. sseenntteennccee
  1494.      An area of text that begins with either  the  beginning
  1495.      of  the  file or the first nonblank character following
  1496.      the previous sentence, paragraph, or  section  boundary
  1497.      and  continues  until  the  end of the file or a period
  1498.      (".""))  eexxccllaammaattiioonn ppooiinntt ((""!!")  or question mark  ("?""))
  1499.      cchhaarraacctteerr,,  ffoolllloowweedd  bbyy  eeiitthheerr  aann eenndd--ooff--lliinnee oorr ttwwoo
  1500.      wwhhiitteessppaaccee cchhaarraacctteerrss..  AAnnyy nnuummbbeerr ooff cclloossiinngg ppaarreenntthhee--
  1501.      sseess ((""))"), brackets ("]"")),, ddoouubbllee--qquuoottee ((""""") or single
  1502.      quote ("'"")) cchhaarraacctteerrss ccaann aappppeeaarr bbeettwweeeenn  tthhee  ppeerriioodd,,
  1503.      eexxccllaammaattiioonn  ppooiinntt,, oorr qquueessttiioonn mmaarrkk aanndd tthhee wwhhiitteessppaaccee
  1504.      cchhaarraacctteerrss oorr eenndd--ooff--lliinnee..
  1505.  
  1506.      GGrroouuppss ooff eemmppttyy lliinneess ((oorr lliinneess ccoonnttaaiinniinngg oonnllyy wwhhiitteess--
  1507.      ppaaccee cchhaarraacctteerrss)) aarree ttrreeaatteedd aass aa ssiinnggllee sseenntteennccee..
  1508.  
  1509. 1133..  VVii CCoommmmaannddss
  1510.  
  1511.      The  following section describes the commands available
  1512. in the command mode of the vvii editor.  In each entry  below,
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523. VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))                      UUSSDD::1133--2255
  1524.  
  1525.  
  1526. the  tag line is a usage synopsis for the command character.
  1527. In addition, the final line  and  column  the  cursor  rests
  1528. upon, and any options which affect the command are noted.
  1529.  
  1530. [[ccoouunntt]] <<ccoonnttrrooll--AA>>
  1531.      Search  forward  count ttiimmeess ffoorr tthhee ccuurrrreenntt wwoorrdd..  TThhee
  1532.      ccuurrrreenntt wwoorrdd bbeeggiinnss aatt tthhee ffiirrsstt nnoonn--wwhhiitteessppaaccee cchhaarraacc--
  1533.      tteerr  oonn  oorr  aafftteerr  tthhee  ccuurrrreenntt  ccuurrssoorr  ppoossiittiioonn,, aanndd
  1534.      eexxtteennddss uupp ttoo tthhee nneexxtt nnoonn--wwoorrdd cchhaarraacctteerr oorr tthhee eenndd ooff
  1535.      tthhee lliinnee..  TThhee sseeaarrcchh iiss lliitteerraall,, ii..ee.. nnoo cchhaarraacctteerrss iinn
  1536.      tthhee wwoorrdd hhaavvee aannyy ssppeecciiaall mmeeaanniinngg iinn tteerrmmss  ooff  RReegguullaarr
  1537.      EExxpprreessssiioonnss..   IItt iiss aann eerrrroorr iiff nnoo mmaattcchhiinngg ppaatttteerrnn iiss
  1538.      ffoouunndd bbeettwweeeenn tthhee ssttaarrttiinngg ppoossiittiioonn aanndd tthhee eenndd ooff  tthhee
  1539.      ffiillee..
  1540.  
  1541.      TThhee  <<ccoonnttrrooll--AA>>  ccoommmmaanndd iiss aann aabbssoolluuttee mmoovveemmeenntt..  TThhee
  1542.      <<ccoonnttrrooll--AA>> ccoommmmaanndd mmaayy bbee uusseedd aass tthhee mmoottiioonn ccoommppoonneenntt
  1543.      ooff  ootthheerr  vvii  ccoommmmaannddss,,  iinn wwhhiicchh ccaassee aannyy tteexxtt ccooppiieedd
  1544.      iinnttoo aa bbuuffffeerr iiss cchhaarraacctteerr oorriieenntteedd..
  1545.  
  1546.      Line:    Set to the line where the word is found.
  1547.      Column:  Set to the first character of the word.
  1548.      Options: Affected  by  the  iiggnnoorreeccaassee   and   wwrraappssccaann
  1549.               options.
  1550.  
  1551. [[ccoouunntt]] <<ccoonnttrrooll--BB>>
  1552.      Page  backward count ssccrreeeennss..  TTwwoo lliinneess ooff oovveerrllaapp aarree
  1553.      mmaaiinnttaaiinneedd,,  iiff  ppoossssiibbllee,,  bbyy  ddiissppllaayyiinngg  tthhee  wwiinnddooww
  1554.      ssttaarrttiinngg  aatt lliinnee ((ttoopp__lliinnee -- ccoouunntt ** wwiinnddooww__ssiizzee)) ++ 22,
  1555.      where window_size iiss tthhee vvaalluuee ooff  tthhee  wwiinnddooww  ooppttiioonn..
  1556.      ((IInn  tthhee  ccaassee ooff sspplliitt ssccrreeeennss,, tthhiiss ssiizzee iiss ccoorrrreecctteedd
  1557.      ttoo tthhee ccuurrrreenntt ssccrreeeenn ssiizzee..))  IItt iiss  aann  eerrrroorr  iiff  tthhee
  1558.      mmoovveemmeenntt iiss ppaasstt tthhee bbeeggiinnnniinngg ooff tthhee ffiillee..
  1559.  
  1560.      Line:    Set  to the last line of text displayed on the
  1561.               screen.
  1562.      Column:  Set to the first  nonblank  character  of  the
  1563.               line.
  1564.      Options: Affected by the wwiinnddooww option.
  1565.  
  1566. [[ccoouunntt]] <<ccoonnttrrooll--DD>>
  1567.      Scroll forward count lliinneess..  IIff ccoouunntt is not specified,
  1568.      scroll forward the number of  lines  specified  by  the
  1569.      last  <<ccoonnttrrooll--DD>>  or  <<ccoonnttrrooll--UU>> command.  If this is
  1570.      the first <<ccoonnttrrooll--DD>> or  <<ccoonnttrrooll--UU>>  command,  scroll
  1571.      forward  half  the  number of lines in the screen.  (In
  1572.      the case of split screens, the default  scrolling  dis-
  1573.      tance  is  corrected  to half the current screen size.)
  1574.      It is an error if the movement is past the end  of  the
  1575.      file.
  1576.  
  1577.      Line:    Set  to  the  current  line plus the number of
  1578.               lines scrolled.
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589. UUSSDD::1133--2266                      VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))
  1590.  
  1591.  
  1592.      Column:  Set to the first  nonblank  character  of  the
  1593.               line.
  1594.      Options: None.
  1595.  
  1596. [[ccoouunntt]] <<ccoonnttrrooll--EE>>
  1597.      Scroll  forward  count lliinneess,, lleeaavviinngg tthhee ccuurrssoorr oonn tthhee
  1598.      ccuurrrreenntt lliinnee aanndd ccoolluummnn,, iiff ppoossssiibbllee..  IItt iiss  aann  eerrrroorr
  1599.      iiff tthhee mmoovveemmeenntt iiss ppaasstt tthhee eenndd ooff tthhee ffiillee..
  1600.  
  1601.      Line:    Unchanged  unless the current line scrolls off
  1602.               the screen, in which case it  is  set  to  the
  1603.               first line on the screen.
  1604.      Column:  Unchanged  unless the current line scrolls off
  1605.               the screen, in which case it  is  set  to  the
  1606.               most attractive cursor position.
  1607.      Options: None.
  1608.  
  1609. [[ccoouunntt]] <<ccoonnttrrooll--FF>>
  1610.      Page  forward  count ssccrreeeennss..  TTwwoo lliinneess ooff oovveerrllaapp aarree
  1611.      mmaaiinnttaaiinneedd,,  iiff  ppoossssiibbllee,,  bbyy  ddiissppllaayyiinngg  tthhee  wwiinnddooww
  1612.      ssttaarrttiinngg  aatt  lliinnee  ttoopp__lliinnee ++ ccoouunntt ** wwiinnddooww__ssiizzee -- 22,
  1613.      where window_size iiss tthhee vvaalluuee ooff  tthhee  wwiinnddooww  ooppttiioonn..
  1614.      ((IInn  tthhee  ccaassee ooff sspplliitt ssccrreeeennss,, tthhiiss ssiizzee iiss ccoorrrreecctteedd
  1615.      ttoo tthhee ccuurrrreenntt ssccrreeeenn ssiizzee..))  IItt iiss  aann  eerrrroorr  iiff  tthhee
  1616.      mmoovveemmeenntt iiss ppaasstt tthhee eenndd ooff tthhee ffiillee..
  1617.  
  1618.      Line:    Set to the first line on the screen.
  1619.      Column:  Set  to  the  first  nonblank character of the
  1620.               current line.
  1621.      Options: Affected by the wwiinnddooww option.
  1622.  
  1623. <<ccoonnttrrooll--GG>>
  1624.      Display the file information.  The information includes
  1625.      the  current  pathname, the current line, the number of
  1626.      total lines in the file, the current line as a percent-
  1627.      age  of  the  total  lines in the file, if the file has
  1628.      been modified, was able to be  locked,  if  the  file's
  1629.      name has been changed, and if the edit session is read-
  1630.      only.
  1631.  
  1632.      Line:    Unchanged.
  1633.      Column:  Unchanged.
  1634.      Options: None.
  1635.  
  1636. [[ccoouunntt]] <<ccoonnttrrooll--HH>>
  1637. [[ccoouunntt]] hh
  1638.      Move the cursor back count cchhaarraacctteerrss  iinn  tthhee  ccuurrrreenntt
  1639.      lliinnee..   IItt  iiss  aann  eerrrroorr iiff tthhee ccuurrssoorr iiss oonn tthhee ffiirrsstt
  1640.      cchhaarraacctteerr iinn tthhee lliinnee..
  1641.  
  1642.      TThhee <<ccoonnttrrooll--HH>> aanndd hh  ccoommmmaannddss  mmaayy  bbee  uusseedd  aass  tthhee
  1643.      mmoottiioonn  ccoommppoonneenntt  ooff  ootthheerr vvii ccoommmmaannddss,, iinn wwhhiicchh ccaassee
  1644.      aannyy tteexxtt ccooppiieedd iinnttoo aa bbuuffffeerr iiss cchhaarraacctteerr oorriieenntteedd..
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655. VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))                      UUSSDD::1133--2277
  1656.  
  1657.  
  1658.      Line:    Unchanged.
  1659.      Column:  Set to the current - count character, or,  the
  1660.               first  character  in  the  line  if  count  is
  1661.               greater than or equal to the number of charac-
  1662.               ters in the line before the cursor.
  1663.      Options: None.
  1664.  
  1665. [[ccoouunntt]] <<ccoonnttrrooll--JJ>>
  1666. [[ccoouunntt]] <<ccoonnttrrooll--NN>>
  1667. [[ccoouunntt]] jj
  1668.      Move  the  cursor down count lliinneess wwiitthhoouutt cchhaannggiinngg tthhee
  1669.      ccuurrrreenntt ccoolluummnn..  IItt iiss aann eerrrroorr iiff tthhee mmoovveemmeenntt iiss ppaasstt
  1670.      tthhee eenndd ooff tthhee ffiillee..
  1671.  
  1672.      TThhee <<ccoonnttrrooll--JJ>>,, <<ccoonnttrrooll--NN>> aanndd jj ccoommmmaannddss mmaayy bbee uusseedd
  1673.      aass tthhee mmoottiioonn ccoommppoonneenntt ooff ootthheerr vvii ccoommmmaannddss,, iinn  wwhhiicchh
  1674.      ccaassee aannyy tteexxtt ccooppiieedd iinnttoo aa bbuuffffeerr iiss lliinnee oorriieenntteedd..
  1675.  
  1676.      Line:    Set to the current line plus count..
  1677.      Column:  The most attractive cursor position.
  1678.      Options: None.
  1679.  
  1680. <<ccoonnttrrooll--LL>>
  1681. <<ccoonnttrrooll--RR>>
  1682.      Repaint the screen.
  1683.  
  1684.      Line:    Unchanged.
  1685.      Column:  Unchanged.
  1686.      Options: None.
  1687.  
  1688. [[ccoouunntt]] <<ccoonnttrrooll--MM>>
  1689. [[ccoouunntt]] ++
  1690.      Move  the cursor down count lliinneess ttoo tthhee ffiirrsstt nnoonnbbllaannkk
  1691.      cchhaarraacctteerr ooff tthhaatt lliinnee..  IItt iiss aann eerrrroorr iiff tthhee mmoovveemmeenntt
  1692.      iiss ppaasstt tthhee eenndd ooff tthhee ffiillee..
  1693.  
  1694.      TThhee  <<ccoonnttrrooll--MM>>  aanndd  ++  ccoommmmaannddss  mmaayy  bbee uusseedd aass tthhee
  1695.      mmoottiioonn ccoommppoonneenntt ooff ootthheerr vvii ccoommmmaannddss,,  iinn  wwhhiicchh  ccaassee
  1696.      aannyy tteexxtt ccooppiieedd iinnttoo aa bbuuffffeerr iiss lliinnee oorriieenntteedd..
  1697.  
  1698.      Line:    Set to the current line plus count..
  1699.      Column:  Set  to  the  first  nonblank character in the
  1700.               line.
  1701.      Options: None.
  1702.  
  1703. [[ccoouunntt]] <<ccoonnttrrooll--PP>>
  1704. [[ccoouunntt]] kk
  1705.      Move the cursor up count lliinneess,,  wwiitthhoouutt  cchhaannggiinngg  tthhee
  1706.      ccuurrrreenntt ccoolluummnn..  IItt iiss aann eerrrroorr iiff tthhee mmoovveemmeenntt iiss ppaasstt
  1707.      tthhee bbeeggiinnnniinngg ooff tthhee ffiillee..
  1708.  
  1709.      TThhee <<ccoonnttrrooll--PP>> aanndd kk  ccoommmmaannddss  mmaayy  bbee  uusseedd  aass  tthhee
  1710.      mmoottiioonn  ccoommppoonneenntt  ooff  ootthheerr vvii ccoommmmaannddss,, iinn wwhhiicchh ccaassee
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721. UUSSDD::1133--2288                      VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))
  1722.  
  1723.  
  1724.      aannyy tteexxtt ccooppiieedd iinnttoo aa bbuuffffeerr iiss lliinnee oorriieenntteedd..
  1725.  
  1726.      Line:    Set to the current line minus count..
  1727.      Column:  The most attractive cursor position.
  1728.      Options: None.
  1729.  
  1730. <<ccoonnttrrooll--TT>>
  1731.      Return to the most recent tag context.  The <<ccoonnttrrooll--TT>>
  1732.      command is an absolute movement.
  1733.  
  1734.      Line:    Set  to  the  context of the previous tag com-
  1735.               mand.
  1736.      Column:  Set to the context of the  previous  tag  com-
  1737.               mand.
  1738.      Options: None.
  1739.  
  1740. [[ccoouunntt]] <<ccoonnttrrooll--UU>>
  1741.      Scroll  backward  count  lliinneess..  IIff ccoouunntt is not speci-
  1742.      fied, scroll backward the number of lines specified  by
  1743.      the  last  <<ccoonnttrrooll--DD>> or <<ccoonnttrrooll--UU>> command.  If this
  1744.      is the first <<ccoonnttrrooll--DD>> or <<ccoonnttrrooll--UU>> command, scroll
  1745.      backward  half  the number of lines in the screen.  (In
  1746.      the case of split screens, the default  scrolling  dis-
  1747.      tance  is  corrected  to half the current screen size.)
  1748.      It is an error if the movement is past the beginning of
  1749.      the file.
  1750.  
  1751.      Line:    Set  to  the  current  line  minus  the amount
  1752.               scrolled.
  1753.      Column:  Set to the first  nonblank  character  in  the
  1754.               line.
  1755.      Options: None.
  1756.  
  1757. <<ccoonnttrrooll--WW>>
  1758.      Switch  to  the next lower screen in the window, or, to
  1759.      the first screen if there are no lower screens  in  the
  1760.      window.
  1761.  
  1762.      Line:    Set  to  the  previous  cursor position in the
  1763.               window.
  1764.      Column:  Set to the previous  cursor  position  in  the
  1765.               window.
  1766.      Options: None.
  1767.  
  1768. [[ccoouunntt]] <<ccoonnttrrooll--YY>>
  1769.      Scroll  backward  count lliinneess,, lleeaavviinngg tthhee ccuurrrreenntt lliinnee
  1770.      aanndd ccoolluummnn aass iiss,, iiff ppoossssiibbllee..  IItt iiss aann eerrrroorr  iiff  tthhee
  1771.      mmoovveemmeenntt iiss ppaasstt tthhee bbeeggiinnnniinngg ooff tthhee ffiillee..
  1772.  
  1773.      Line:    Unchanged  unless the current line scrolls off
  1774.               the screen, in which case it  is  set  to  the
  1775.               last line of text displayed on the screen.
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787. VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))                      UUSSDD::1133--2299
  1788.  
  1789.  
  1790.      Column:  Unchanged  unless the current line scrolls off
  1791.               the screen, in  which  case  it  is  the  most
  1792.               attractive cursor position.
  1793.      Options: None.
  1794.  
  1795. <<ccoonnttrrooll--ZZ>>
  1796.      Suspend  the  current  editor session.  If the file has
  1797.      been modified since it was last completely written, and
  1798.      the aauuttoowwrriittee option is set, the file is written before
  1799.      the editor session is suspended.  If this write  fails,
  1800.      the editor session is not suspended.
  1801.  
  1802.      Line:    Unchanged.
  1803.      Column:  Unchanged.
  1804.      Options: Affected by the aauuttoowwrriittee option.
  1805.  
  1806. <<eessccaappee>>
  1807.      Execute  eexx commands or cancel partial commands.  If an
  1808.      eexx command is being entered (e.g.  //, ??, :: or  !!),  the
  1809.      command  is  executed.   If  a partial command has been
  1810.      entered, e.g.  "[0-9]*"",, oorr ""[[00--99]]**[[!!<<>>ccddyy]]", the  com-
  1811.      mand is cancelled.  Otherwise, it is an error.
  1812.  
  1813.      Line:    When an eexx command is being executed, the cur-
  1814.               rent line is set as described  for  that  com-
  1815.               mand.  Otherwise, unchanged.
  1816.      Column:  When an eexx command is being executed, the cur-
  1817.               rent column is set as described for that  com-
  1818.               mand.  Otherwise, unchanged.
  1819.      Options: None.
  1820.  
  1821. <<ccoonnttrrooll--]]>>
  1822.      Push  a  tag  reference  onto  the tag stack.  The tags
  1823.      files (see the ttaaggss option for  more  information)  are
  1824.      searched for a tag matching the current word.  The cur-
  1825.      rent word begins at the first non-whitespace  character
  1826.      on or after the current cursor position, and extends up
  1827.      to the next non-word character or the end of the  line.
  1828.      If  a  matching  tag is found, the current file is dis-
  1829.      carded and the file containing  the  tag  reference  is
  1830.      edited.
  1831.  
  1832.      If the current file has been modified since it was last
  1833.      completely written, the command will fail.   The  <<ccoonn--
  1834.      ttrrooll--]]>> command is an absolute movement.
  1835.  
  1836.      Line:    Set  to  the  line containing the matching tag
  1837.               string.
  1838.      Column:  Set to the start of the matching tag string.
  1839.      Options: Affected by the ttaaggss and ttaagglleennggtthh options.
  1840.  
  1841. <<ccoonnttrrooll--^^>>
  1842.      Switch to the most recently edited file.
  1843.  
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852.  
  1853. UUSSDD::1133--3300                      VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))
  1854.  
  1855.  
  1856.      If the file has been modified since it  was  last  com-
  1857.      pletely  written,  and the aauuttoowwrriittee option is set, the
  1858.      file is written out.  If this write fails, the  command
  1859.      will  fail.   Otherwise,  if  the current file has been
  1860.      modified since it was last completely written, the com-
  1861.      mand will fail.
  1862.  
  1863.      Line:    Set  to  the  line  the cursor was on when the
  1864.               file was last edited.
  1865.      Column:  Set to the column the cursor was on  when  the
  1866.               file was last edited.
  1867.      Options: Affected by the aauuttoowwrriittee option.
  1868.  
  1869. [[ccoouunntt]] <<ssppaaccee>>
  1870. [[ccoouunntt]] ll
  1871.      Move the cursor forward count cchhaarraacctteerrss wwiitthhoouutt cchhaanngg--
  1872.      iinngg tthhee ccuurrrreenntt lliinnee..  IItt iiss aann eerrrroorr iiff tthhee ccuurrssoorr  iiss
  1873.      oonn tthhee llaasstt cchhaarraacctteerr iinn tthhee lliinnee..
  1874.  
  1875.      TThhee  <<ssppaaccee>>  aanndd  ll ccoommmmaannddss mmaayy bbee uusseedd aass tthhee mmoottiioonn
  1876.      ccoommppoonneenntt ooff ootthheerr vvii ccoommmmaannddss,, iinn wwhhiicchh ccaassee aannyy  tteexxtt
  1877.      ccooppiieedd  iinnttoo  aa bbuuffffeerr iiss cchhaarraacctteerr oorriieenntteedd..  IInn aaddddii--
  1878.      ttiioonn,, tthheessee ccoommmmaannddss mmaayy bbee uusseedd aass tthhee  mmoottiioonn  ccoommppoo--
  1879.      nneennttss  ooff ootthheerr ccoommmmaannddss wwhheenn tthhee ccuurrssoorr iiss oonn tthhee llaasstt
  1880.      cchhaarraacctteerr iinn tthhee lliinnee,, wwiitthhoouutt eerrrroorr..
  1881.  
  1882.      Line:    Unchanged.
  1883.      Column:  Set to the current  character  plus  the  next
  1884.               count  characters, or to the last character on
  1885.               the line if count is greater than  the  number
  1886.               of  characters  in  the line after the current
  1887.               character.
  1888.      Options: None.
  1889.  
  1890. [[ccoouunntt]] !! mmoottiioonn sshheellll--aarrgguummeenntt((ss))<<ccaarrrriiaaggee--rreettuurrnn>>
  1891.      Replace text with results from a shell  command.   Pass
  1892.      the  lines  specified by the count aanndd mmoottiioonn arguments
  1893.      as standard input to the program  named  by  the  sshheellll
  1894.      option,  and  replace those lines with the output (both
  1895.      standard error and standard output) of that command.
  1896.  
  1897.      After the motion is entered, vvii prompts  for  arguments
  1898.      to the shell command.
  1899.  
  1900.      Within  those  arguments,  "%""  aanndd  ""##" characters are
  1901.      expanded  to  the  current  and  alternate   pathnames,
  1902.      respectively.   The "!""  cchhaarraacctteerr iiss eexxppaannddeedd wwiitthh tthhee
  1903.      ccoommmmaanndd tteexxtt  ooff  tthhee  pprreevviioouuss  !!   oorr  ::!!   ccoommmmaannddss..
  1904.      ((TThheerreeffoorree,,  tthhee ccoommmmaanndd !!<<mmoottiioonn>>!!  rreeppeeaattss tthhee pprreevvii--
  1905.      oouuss !!  ccoommmmaanndd..))  TThhee ssppeecciiaall mmeeaanniinnggss ooff ""%%"",, ""##""  aanndd
  1906.      ""!!""   ccaann  bbee  oovveerrrriiddddeenn bbyy eessccaappiinngg tthheemm wwiitthh aa bbaacckk--
  1907.      ssllaasshh..  IIff nnoo !!  oorr ::!!  ccoommmmaanndd hhaass yyeett bbeeeenn  eexxeeccuutteedd,,
  1908.      iitt  iiss aann eerrrroorr ttoo uussee aann uunneessccaappeedd ""!!""  cchhaarraacctteerr aass aa
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919. VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))                      UUSSDD::1133--3311
  1920.  
  1921.  
  1922.      sshheellll aarrgguummeenntt..  TThhee  !!   ccoommmmaanndd  ddooeess  _n_o_t  ddoo  sshheellll
  1923.      eexxppaannssiioonn oonn tthhee ssttrriinnggss pprroovviiddeedd aass aarrgguummeennttss..  IIff aannyy
  1924.      ooff tthhee aabboovvee eexxppaannssiioonnss cchhaannggee tthhee aarrgguummeennttss  tthhee  uusseerr
  1925.      eenntteerreedd,,  tthhee  ccoommmmaanndd  iiss rreeddiissppllaayyeedd aatt tthhee bboottttoomm ooff
  1926.      tthhee ssccrreeeenn..
  1927.  
  1928.      VVii tthheenn eexxeeccuutteess tthhee pprrooggrraamm nnaammeedd bbyy tthhee sshheellll ooppttiioonn,,
  1929.      wwiitthh  aa  --cc  ffllaagg  ffoolllloowweedd bbyy tthhee aarrgguummeennttss ((wwhhiicchh aarree
  1930.      bbuunnddlleedd iinnttoo aa ssiinnggllee aarrgguummeenntt))..
  1931.  
  1932.      TThhee !!  ccoommmmaanndd iiss ppeerrmmiitttteedd iinn aann eemmppttyy ffiillee..
  1933.  
  1934.      IIff tthhee ffiillee hhaass bbeeeenn mmooddiiffiieedd ssiinnccee iitt  wwaass  llaasstt  ccoomm--
  1935.      pplleetteellyy wwrriitttteenn,, tthhee !!  ccoommmmaanndd wwiillll wwaarrnn yyoouu..
  1936.  
  1937.      Line:    The first line of the replaced text.
  1938.      Column:  The first column of the replaced text.
  1939.      Options: Affected by the sshheellll option.
  1940.  
  1941. [[ccoouunntt]] ## ##||++||--
  1942.      Increment  or  decrement  the  number referenced by the
  1943.      cursor.  If the trailing character is a  +  oorr  ##,  the
  1944.      number  is incremented by count..  IIff tthhee ttrraaiilliinngg cchhaarr--
  1945.      aacctteerr iiss aa --, the number is decremented by count..
  1946.  
  1947.      AA lleeaaddiinngg ""00XX" or "0x"" ccaauusseess tthhee nnuummbbeerr ttoo  bbee  iinntteerr--
  1948.      pprreetteedd  aass  aa hheexxaaddeecciimmaall nnuummbbeerr..  OOtthheerrwwiissee,, aa lleeaaddiinngg
  1949.      ""00" causes the number to be  interpreted  as  an  octal
  1950.      number,  unless  a  non-octal digit is found as part of
  1951.      the number.  Otherwise, the number is interpreted as  a
  1952.      decimal  number,  and  may  have a leading + oorr -- sign.
  1953.      The current number begins at the first non-blank  char-
  1954.      acter  at  or  after  the  current cursor position, and
  1955.      extends up to the end of the line or the first  charac-
  1956.      ter  that  isn't  a  possible character for the numeric
  1957.      type.  The format of  the  number  (e.g.  leading  0's,
  1958.      signs)  is retained unless the new value cannot be rep-
  1959.      resented in the previous format.
  1960.  
  1961.      Octal and hexadecimal numbers, and the  result  of  the
  1962.      operation,  must  fit  into  an "unsigned long""..  SSiimmii--
  1963.      llaarrllyy,, ddeecciimmaall nnuummbbeerrss aanndd tthheeiirr rreessuulltt mmuusstt ffiitt iinnttoo aa
  1964.      ""ssiiggnneedd lloonngg".  It is an error to use this command when
  1965.      the cursor is not positioned at a number.
  1966.  
  1967.  
  1968.      Line:    Unchanged.
  1969.      Column:  Set to the first character in the cursor  num-
  1970.               ber.
  1971.      Options: None.
  1972.  
  1973. [[ccoouunntt]] $$
  1974.      Move  the  cursor  to  the  end of a line.  If count iiss
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984.  
  1985. UUSSDD::1133--3322                      VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))
  1986.  
  1987.  
  1988.      ssppeecciiffiieedd,, tthhee ccuurrssoorr mmoovveess ddoowwnn ccoouunntt -- 11 lines.
  1989.  
  1990.      It is not an error to use the $$ command when the cursor
  1991.      is  on  the last character in the line or when the line
  1992.      is empty.
  1993.  
  1994.      The $$ command may be used as the  motion  component  of
  1995.      other vvii commands, in which case any text copied into a
  1996.      buffer is character oriented, unless the cursor is  at,
  1997.      or  before the first nonblank character in the line, in
  1998.      which case it is line oriented.  It is not an error  to
  1999.      use the $$ command as a motion component when the cursor
  2000.      is on the last character in the line, although it is an
  2001.      error when the line is empty.
  2002.  
  2003.      Line:    Set to the current line plus count minus 1.
  2004.      Column:  Set to the last character in the line.
  2005.      Options: None.
  2006.  
  2007. %%
  2008.      Move  to  the  matching character.  The cursor moves to
  2009.      the parenthesis or curly brace which _m_a_t_c_h_e_s the paren-
  2010.      thesis or curly brace found at the current cursor posi-
  2011.      tion or which is the closest one to the  right  of  the
  2012.      cursor  on  the  line.  It is an error to execute the %%
  2013.      command on a line without a parenthesis or curly brace.
  2014.      Historically,  any count ssppeecciiffiieedd ttoo tthhee %% ccoommmmaanndd wwaass
  2015.      iiggnnoorreedd..
  2016.  
  2017.      TThhee %% ccoommmmaanndd iiss aann aabbssoolluuttee mmoovveemmeenntt..  TThhee  %%  ccoommmmaanndd
  2018.      mmaayy  bbee  uusseedd  aass tthhee mmoottiioonn ccoommppoonneenntt ooff ootthheerr vvii ccoomm--
  2019.      mmaannddss,, iinn wwhhiicchh ccaassee aannyy tteexxtt ccooppiieedd iinnttoo aa  bbuuffffeerr  iiss
  2020.      cchhaarraacctteerr  oorriieenntteedd,,  uunnlleessss  tthhee ssttaarrttiinngg ppooiinntt ooff tthhee
  2021.      rreeggiioonn iiss aatt oorr bbeeffoorree tthhee ffiirrsstt nnoonnbbllaannkk cchhaarraacctteerr  oonn
  2022.      iittss  lliinnee,, aanndd tthhee eennddiinngg ppooiinntt iiss aatt oorr aafftteerr tthhee llaasstt
  2023.      nnoonnbbllaannkk cchhaarraacctteerr oonn iittss lliinnee,, iinn  wwhhiicchh  ccaassee  iitt  iiss
  2024.      lliinnee oorriieenntteedd..
  2025.  
  2026.      Line:    Set  to the line containing the matching char-
  2027.               acter.
  2028.      Column:  Set to the matching character.
  2029.      Options: None.
  2030.  
  2031. &&
  2032.      Repeat the previous substitution command on the current
  2033.      line.
  2034.  
  2035.      Historically,  any count ssppeecciiffiieedd ttoo tthhee && ccoommmmaanndd wwaass
  2036.      iiggnnoorreedd..
  2037.  
  2038.      Line:    Unchanged.
  2039.      Column:  Unchanged if the cursor was on the last  char-
  2040.               acter in the line, otherwise, set to the first
  2041.  
  2042.  
  2043.  
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050.  
  2051. VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))                      UUSSDD::1133--3333
  2052.  
  2053.  
  2054.               nonblank character in the line.
  2055.      Options: Affected  by   the   eeddccoommppaattiibbllee,   eexxtteennddeedd,
  2056.               iiggnnoorreeccaassee and mmaaggiicc options.
  2057.  
  2058. ''<<cchhaarraacctteerr>>
  2059. ``<<cchhaarraacctteerr>>
  2060.      Return  to  a  context marked by the character <charac-
  2061.      ter>..  IIff <<cchhaarraacctteerr>> is  the  "'""  oorr  ""``"  character,
  2062.      return  to the previous context.  If <character> iiss aannyy
  2063.      ootthheerr cchhaarraacctteerr,, rreettuurrnn ttoo tthhee ccoonntteexxtt mmaarrkkeedd  bbyy  tthhaatt
  2064.      cchhaarraacctteerr ((sseeee tthhee mm ccoommmmaanndd ffoorr mmoorree iinnffoorrmmaattiioonn))..  IIff
  2065.      tthhee ccoommmmaanndd iiss tthhee '' ccoommmmaanndd,, oonnllyy tthhee  lliinnee  vvaalluuee  iiss
  2066.      rreessttoorreedd,,  aanndd  tthhee  ccuurrssoorr iiss ppllaacceedd oonn tthhee ffiirrsstt nnoonn--
  2067.      bbllaannkk cchhaarraacctteerr ooff tthhaatt lliinnee..  IIff tthhee ccoommmmaanndd iiss tthhee  ``
  2068.      ccoommmmaanndd,,  bbootthh tthhee lliinnee aanndd ccoolluummnn vvaalluueess aarree rreessttoorreedd..
  2069.  
  2070.      IItt iiss aann eerrrroorr iiff tthhee ccoonntteexxtt nnoo lloonnggeerr eexxiissttss  bbeeccaauussee
  2071.      ooff  lliinnee  ddeelleettiioonn..   ((CCoonntteexxttss  ffoollllooww  lliinneess tthhaatt aarree
  2072.      mmoovveedd,, oorr wwhhiicchh aarree ddeelleetteedd aanndd tthheenn rreessttoorreedd..))
  2073.  
  2074.      TThhee '' aanndd `` ccoommmmaannddss aarree bbootthh aabbssoolluuttee mmoovveemmeennttss..  TThheeyy
  2075.      mmaayy  bbee  uusseedd  aass  aa mmoottiioonn ccoommppoonneenntt ffoorr ootthheerr vvii ccoomm--
  2076.      mmaannddss..  FFoorr tthhee ''  ccoommmmaanndd,,  aannyy  tteexxtt  ccooppiieedd  iinnttoo  aa
  2077.      bbuuffffeerr  iiss  lliinnee oorriieenntteedd..  FFoorr tthhee `` ccoommmmaanndd,, aannyy tteexxtt
  2078.      ccooppiieedd iinnttoo aa bbuuffffeerr iiss cchhaarraacctteerr oorriieenntteedd,,  uunnlleessss  iitt
  2079.      bbootthh  ssttaarrttss  aanndd  ssttooppss  aatt tthhee ffiirrsstt cchhaarraacctteerr iinn tthhee
  2080.      lliinnee,, iinn wwhhiicchh ccaassee iitt iiss lliinnee oorriieenntteedd..  IInn  aaddddiittiioonn,,
  2081.      wwhheenn  uussiinngg  tthhee  `` ccoommmmaanndd aass aa mmoottiioonn ccoommppoonneenntt,, ccoomm--
  2082.      mmaannddss wwhhiicchh mmoovvee bbaacckkwwaarrdd  aanndd  ssttaarrtteedd  aatt  tthhee  ffiirrsstt
  2083.      cchhaarraacctteerr iinn tthhee lliinnee,, oorr mmoovvee ffoorrwwaarrdd aanndd eennddeedd aatt tthhee
  2084.      ffiirrsstt cchhaarraacctteerr iinn tthhee lliinnee,, aarree ccoorrrreecctteedd ttoo tthhee  llaasstt
  2085.      cchhaarraacctteerr ooff tthhee lliinnee pprreecceeddiinngg tthhee ssttaarrttiinngg aanndd eennddiinngg
  2086.      lliinneess,, rreessppeeccttiivveellyy..
  2087.  
  2088.      Line:    Set to the line from the context.
  2089.      Column:  Set to the first  nonblank  character  in  the
  2090.               line,  for  the '' command, and set to the con-
  2091.               text's column for the `` command.
  2092.      Options: None.
  2093.  
  2094. [[ccoouunntt]] ((
  2095.      Back up count sseenntteenncceess..
  2096.  
  2097.      TThhee (( ccoommmmaanndd iiss aann aabbssoolluuttee mmoovveemmeenntt..  TThhee  ((  ccoommmmaanndd
  2098.      mmaayy  bbee  uusseedd  aass tthhee mmoottiioonn ccoommppoonneenntt ooff ootthheerr vvii ccoomm--
  2099.      mmaannddss,, iinn wwhhiicchh ccaassee aannyy tteexxtt ccooppiieedd iinnttoo aa  bbuuffffeerr  iiss
  2100.      cchhaarraacctteerr  oorriieenntteedd,,  uunnlleessss  tthhee ssttaarrttiinngg aanndd ssttooppppiinngg
  2101.      ppooiinnttss ooff tthhee rreeggiioonn aarree tthhee  ffiirrsstt  cchhaarraacctteerr  iinn  tthhee
  2102.      lliinnee,, iinn wwhhiicchh ccaassee iitt iiss lliinnee oorriieenntteedd..  IIff iitt iiss lliinnee
  2103.      oorriieenntteedd,, tthhee ssttaarrttiinngg ppooiinntt ooff tthhee rreeggiioonn iiss  aaddjjuusstteedd
  2104.      ttoo bbee tthhee eenndd ooff tthhee lliinnee iimmmmeeddiiaatteellyy bbeeffoorree tthhee ssttaarrtt--
  2105.      iinngg ccuurrssoorr ppoossiittiioonn..
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117. UUSSDD::1133--3344                      VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))
  2118.  
  2119.  
  2120.      Line:    Set to the line containing  the  beginning  of
  2121.               the sentence.
  2122.      Column:  Set  to  the  first  nonblank character of the
  2123.               sentence.
  2124.      Options: Affected by the lliisspp option.
  2125.  
  2126. [[ccoouunntt]] ))
  2127.      Move forward count sseenntteenncceess..
  2128.  
  2129.      TThhee )) ccoommmmaanndd iiss aann aabbssoolluuttee mmoovveemmeenntt..  TThhee  ))  ccoommmmaanndd
  2130.      mmaayy  bbee  uusseedd  aass tthhee mmoottiioonn ccoommppoonneenntt ooff ootthheerr vvii ccoomm--
  2131.      mmaannddss,, iinn wwhhiicchh ccaassee aannyy tteexxtt ccooppiieedd iinnttoo aa  bbuuffffeerr  iiss
  2132.      cchhaarraacctteerr  oorriieenntteedd,,  uunnlleessss  tthhee ssttaarrttiinngg ppooiinntt ooff tthhee
  2133.      rreeggiioonn iiss tthhee ffiirrsstt cchhaarraacctteerr iinn  tthhee  lliinnee,,  iinn  wwhhiicchh
  2134.      ccaassee  iitt  iiss lliinnee oorriieenntteedd..  IInn tthhee llaatttteerr ccaassee,, iiff tthhee
  2135.      ssttooppppiinngg ppooiinntt ooff tthhee rreeggiioonn iiss aallssoo tthhee ffiirrsstt  cchhaarraacc--
  2136.      tteerr  iinn  tthhee  lliinnee,, iitt iiss aaddjjuusstteedd ttoo bbee tthhee eenndd ooff tthhee
  2137.      lliinnee iimmmmeeddiiaatteellyy bbeeffoorree iitt..
  2138.  
  2139.      Line:    Set to the line containing  the  beginning  of
  2140.               the sentence.
  2141.      Column:  Set  to  the  first  nonblank character of the
  2142.               sentence.
  2143.      Options: Affected by the lliisspp option.
  2144.  
  2145. [[ccoouunntt]] ,,
  2146.      Reverse find character count ttiimmeess..  RReevveerrssee  tthhee  llaasstt
  2147.      FF,,  ff,,  TT  oorr tt ccoommmmaanndd,, sseeaarrcchhiinngg tthhee ootthheerr wwaayy iinn tthhee
  2148.      lliinnee,, ccoouunntt ttiimmeess..  IItt iiss aann eerrrroorr iiff aa FF,, ff,,  TT  oorr  tt
  2149.      ccoommmmaanndd hhaass nnoott bbeeeenn ppeerrffoorrmmeedd yyeett..
  2150.  
  2151.      TThhee  ,,  ccoommmmaanndd  mmaayy bbee uusseedd aass tthhee mmoottiioonn ccoommppoonneenntt ooff
  2152.      ootthheerr vvii ccoommmmaannddss,, iinn wwhhiicchh ccaassee aannyy tteexxtt ccooppiieedd iinnttoo aa
  2153.      bbuuffffeerr iiss cchhaarraacctteerr oorriieenntteedd..
  2154.  
  2155.      Line:    Unchanged.
  2156.      Column:  Set  to  the  searched-for character for the FF
  2157.               and ff commands, before the character for the tt
  2158.               command and after the character for the TT com-
  2159.               mand.
  2160.      Options: None.
  2161.  
  2162. [[ccoouunntt]] --
  2163.      Move to the first nonblank of the previous line,  count
  2164.      ttiimmeess..
  2165.  
  2166.      IItt iiss aann eerrrroorr iiff tthhee mmoovveemmeenntt iiss ppaasstt tthhee bbeeggiinnnniinngg ooff
  2167.      tthhee ffiillee..
  2168.  
  2169.      TThhee -- ccoommmmaanndd mmaayy bbee uusseedd aass tthhee  mmoottiioonn  ccoommppoonneenntt  ooff
  2170.      ootthheerr vvii ccoommmmaannddss,, iinn wwhhiicchh ccaassee aannyy tteexxtt ccooppiieedd iinnttoo aa
  2171.      bbuuffffeerr iiss lliinnee oorriieenntteedd..
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.  
  2183. VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))                      UUSSDD::1133--3355
  2184.  
  2185.  
  2186.      Line:    Set to the current line minus count..
  2187.      Column:  Set to the first  nonblank  character  in  the
  2188.               line.
  2189.      Options: None.
  2190.  
  2191. [[ccoouunntt]] ..
  2192.      Repeat  the  last  vvii  command that modified text.  The
  2193.      repeated command may be a command and motion  component
  2194.      combination.   If  count iiss ssppeecciiffiieedd,, iitt rreeppllaacceess _b_o_t_h
  2195.      tthhee ccoouunntt ssppeecciiffiieedd ffoorr tthhee rreeppeeaatteedd ccoommmmaanndd,,  aanndd,,  iiff
  2196.      aapppplliiccaabbllee,,  ffoorr  tthhee  rreeppeeaatteedd  mmoottiioonn  ccoommppoonneenntt..  IIff
  2197.      ccoouunntt _i_s _n_o_t _s_p_e_c_i_f_i_e_d_, _t_h_e _c_o_u_n_t_s _o_r_i_g_i_n_a_l_l_y _s_p_e_c_i_f_i_e_d
  2198.      _t_o _t_h_e _c_o_m_m_a_n_d _b_e_i_n_g _r_e_p_e_a_t_e_d _a_r_e _u_s_e_d _a_g_a_i_n_.
  2199.  
  2200.      _A_s  _a _s_p_e_c_i_a_l _c_a_s_e_, _i_f _t_h_e ..  _c_o_m_m_a_n_d _i_s _e_x_e_c_u_t_e_d _i_m_m_e_-
  2201.      _d_i_a_t_e_l_y _a_f_t_e_r _t_h_e uu _c_o_m_m_a_n_d_, _t_h_e _c_h_a_n_g_e _l_o_g  _i_s  _r_o_l_l_e_d
  2202.      _f_o_r_w_a_r_d  _o_r  _b_a_c_k_w_a_r_d_, _d_e_p_e_n_d_i_n_g _o_n _t_h_e _a_c_t_i_o_n _o_f _t_h_e uu
  2203.      _c_o_m_m_a_n_d_.
  2204.  
  2205.      Line:    Set as described for the repeated command.
  2206.      Column:  Set as described for the repeated command.
  2207.      Options: None.
  2208.  
  2209. //RREE<<ccaarrrriiaaggee--rreettuurrnn>>
  2210. //RREE// [[ooffffsseett]]<<ccaarrrriiaaggee--rreettuurrnn>>
  2211. ??RREE<<ccaarrrriiaaggee--rreettuurrnn>>
  2212. ??RREE?? [[ooffffsseett]]<<ccaarrrriiaaggee--rreettuurrnn>>
  2213. NN
  2214. nn
  2215.      Search forward or backward for  a  regular  expression.
  2216.      The commands beginning with a slash ("/"")) cchhaarraacctteerr aarree
  2217.      ffoorrwwaarrdd sseeaarrcchheess,, tthhee ccoommmmaannddss bbeeggiinnnniinngg wwiitthh  aa  qquueess--
  2218.      ttiioonn  mmaarrkk  ((""??")   are  backward searches.  VVii prompts
  2219.      with the leading character on  the  last  line  of  the
  2220.      screen for a string.  It then searches forward or back-
  2221.      ward in the file for the next occurrence of the string,
  2222.      which is interpreted as a Basic Regular Expression.
  2223.  
  2224.      The // and ??  commands are absolute movements.  They may
  2225.      be used as the motion components of other vvii  commands,
  2226.      in  which case any text copied into a buffer is charac-
  2227.      ter oriented, unless the search started  and  ended  on
  2228.      the  first  column  of a line, in which case it is line
  2229.      oriented.  In addition, forward searches ending at  the
  2230.      first character of a line, and backward searches begin-
  2231.      ning at the first character in the line, are  corrected
  2232.      to  begin  or end at the last character of the previous
  2233.      line.  (Note, forward and backward searches  can  occur
  2234.      for  both  // and ??  commands, if the wwrraappssccaann option is
  2235.      set.)
  2236.  
  2237.      If an offset from the matched line is specified (i.e. a
  2238.      trailing  "/"" oorr ""??"  character is followed by a signed
  2239.  
  2240.  
  2241.  
  2242.  
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248.  
  2249. UUSSDD::1133--3366                      VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))
  2250.  
  2251.  
  2252.      offset), the buffer will always be line oriented  (e.g.
  2253.      "/string/+0"" wwiillll aallwwaayyss gguuaarraanntteeee aa lliinnee oorriieennttaattiioonn))..
  2254.  
  2255.      TThhee NN ccoommmmaanndd rreeppeeaattss tthhee pprreevviioouuss sseeaarrcchh,, bbuutt  iinn  tthhee
  2256.      rreevveerrssee  ddiirreeccttiioonn..  TThhee nn ccoommmmaanndd rreeppeeaattss tthhee pprreevviioouuss
  2257.      sseeaarrcchh..  IIff eeiitthheerr tthhee NN oorr  nn  ccoommmmaannddss  aarree  uusseedd  aass
  2258.      mmoottiioonn  ccoommppoonneennttss  ffoorr tthhee !!  ccoommmmaanndd,, yyoouu wwiillll nnoott bbee
  2259.      pprroommpptteedd ffoorr tthhee tteexxtt ooff tthhee bbaanngg ccoommmmaanndd,, iinnsstteeaadd  tthhee
  2260.      pprreevviioouuss bbaanngg ccoommmmaanndd wwiillll bbee eexxeeccuutteedd..
  2261.  
  2262.      MMiissssiinngg RREE''ss ((ee..gg..  ""////<<ccaarrrriiaaggee--rreettuurrnn>>"",, ""//<<ccaarrrriiaaggee--
  2263.      rreettuurrnn>>"",,   ""????<<ccaarrrriiaaggee--rreettuurrnn>>"",,   oorr    ""??<<ccaarrrriiaaggee--
  2264.      rreettuurrnn>>""  sseeaarrcchh  ffoorr  tthhee llaasstt sseeaarrcchh RREE,, iinn tthhee iinnddii--
  2265.      ccaatteedd ddiirreeccttiioonn..
  2266.  
  2267.      SSeeaarrcchheess mmaayy bbee iinntteerrrruupptteedd uussiinngg tthhee <<iinntteerrrruupptt>> cchhaarr--
  2268.      aacctteerr..
  2269.  
  2270.      MMuullttiippllee  sseeaarrcchh  ppaatttteerrnnss  mmaayy  bbee ggrroouuppeedd ttooggeetthheerr bbyy
  2271.      ddeelliimmiittiinngg  tthheemm  wwiitthh  sseemmiiccoolloonnss  aanndd  zzeerroo  oorr  mmoorree
  2272.      wwhhiitteessppaaccee  cchhaarraacctteerrss,,  ee..gg..   //ffoooo// ;; ??bbaarr??  sseeaarrcchheess
  2273.      ffoorrwwaarrdd ffoorr ffoooo aanndd tthheenn,, ffrroomm tthhaatt llooccaattiioonn,, bbaacckkwwaarrddss
  2274.      ffoorr  bbaarr..  WWhheenn sseeaarrcchh ppaatttteerrnnss aarree ggrroouuppeedd ttooggeetthheerr iinn
  2275.      tthhiiss mmaannnneerr,, tthhee sseeaarrcchh ppaatttteerrnnss aarree eevvaalluuaatteedd lleefftt  ttoo
  2276.      rriigghhtt  wwiitthh tthhee ffiinnaall ccuurrssoorr ppoossiittiioonn ddeetteerrmmiinneedd bbyy tthhee
  2277.      llaasstt sseeaarrcchh ppaatttteerrnn..
  2278.  
  2279.      IItt iiss aallssoo ppeerrmmiissssiibbllee ttoo aappppeenndd aa  zz  ccoommmmaanndd  ttoo  tthhee
  2280.      sseeaarrcchh  ssttrriinnggss,,  ee..gg..   //ffoooo// zz..  sseeaarrcchheess ffoorrwwaarrdd ffoorr
  2281.      tthhee nneexxtt ooccccuurrrreennccee ooff ffoooo,,  aanndd  tthheenn  ppoossiittiioonnss  tthhaatt
  2282.      lliinnee iinn tthhee mmiiddddllee ooff ssccrreeeenn..
  2283.  
  2284.      Line:    Set to the line in which the match occurred.
  2285.      Column:  Set  to  the  first  character  of the matched
  2286.               string.
  2287.      Options: Affected  by   the   eeddccoommppaattiibbllee,   eexxtteennddeedd,
  2288.               iiggnnoorreeccaassee, mmaaggiicc, and wwrraappssccaann options.
  2289.  
  2290. 00
  2291.      Move to the first character in the current line.  It is
  2292.      not an error to use the 00 command when the cursor is on
  2293.      the first character in the line,
  2294.  
  2295.      The  00  command  may be used as the motion component of
  2296.      other vvii commands, in which case it is an error if  the
  2297.      cursor  is  on the first character in the line, and any
  2298.      text copied into a buffer is character oriented.
  2299.  
  2300.      Line:    Unchanged.
  2301.      Column:  Set to the first character in the line.
  2302.      Options: None.
  2303.  
  2304.  
  2305.  
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.  
  2314.  
  2315. VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))                      UUSSDD::1133--3377
  2316.  
  2317.  
  2318. ::
  2319.      Execute an eexx command.  VVii prompts for an eexx command on
  2320.      the  last line of the screen, using a colon (":"")) cchhaarr--
  2321.      aacctteerr..  TThhee  ccoommmmaanndd  iiss  tteerrmmiinnaatteedd  bbyy  aa  <<ccaarrrriiaaggee--
  2322.      rreettuurrnn>>,  <newline> oorr <<eessccaappee>> character; all of these
  2323.      characters may be escaped  by  using  a  <literal-next>
  2324.      cchhaarraacctteerr..  TThhee ccoommmmaanndd iiss tthheenn eexxeeccuutteedd..
  2325.  
  2326.      IIff  tthhee eexx ccoommmmaanndd wwrriitteess ttoo tthhee ssccrreeeenn,, vvii wwiillll pprroommpptt
  2327.      tthhee uusseerr ffoorr aa <<ccaarrrriiaaggee--rreettuurrnn>> bbeeffoorree ccoonnttiinnuuiinngg wwhheenn
  2328.      tthhee  eexx ccoommmmaanndd ffiinniisshheess..  LLaarrggee aammoouunnttss ooff oouuttppuutt ffrroomm
  2329.      tthhee eexx ccoommmmaanndd wwiillll bbee ppaaggeedd ffoorr tthhee uusseerr,, aanndd tthhee uusseerr
  2330.      pprroommpptteedd ffoorr aa <<ccaarrrriiaaggee--rreettuurrnn>> oorr <<ssppaaccee>> kkeeyy ttoo ccoonn--
  2331.      ttiinnuuee..  IInn ssoommee ccaasseess,, aa qquuiitt ((nnoorrmmaallllyy aa  ""qq""  cchhaarraacc--
  2332.      tteerr))  oorr <<iinntteerrrruupptt>> mmaayy bbee eenntteerreedd ttoo iinntteerrrruupptt tthhee eexx
  2333.      ccoommmmaanndd..
  2334.  
  2335.      WWhheenn tthhee eexx ccoommmmaanndd ffiinniisshheess,, aanndd tthhee uusseerr iiss  pprroommpptteedd
  2336.      ttoo  rreessuummee  vviissuuaall  mmooddee,,  iitt iiss aallssoo ppoossssiibbllee ttoo eenntteerr
  2337.      aannootthheerr ""::"" cchhaarraacctteerr ffoolllloowweedd bbyy aannootthheerr eexx ccoommmmaanndd..
  2338.  
  2339.      Line:    The current line is set as described  for  the
  2340.               eexx command.
  2341.      Column:  The current column is set as described for the
  2342.               eexx command.
  2343.      Options: Affected as described for the eexx command.
  2344.  
  2345. [[ccoouunntt]] ;;
  2346.      Repeat the last character find count ttiimmeess..   TThhee  llaasstt
  2347.      cchhaarraacctteerr ffiinndd iiss oonnee ooff tthhee FF,, ff,, TT oorr tt ccoommmmaannddss..  IItt
  2348.      iiss aann eerrrroorr iiff aa FF,, ff,, TT oorr tt ccoommmmaanndd hhaass nnoott bbeeeenn ppeerr--
  2349.      ffoorrmmeedd yyeett..
  2350.  
  2351.      TThhee  ;;  ccoommmmaanndd  mmaayy bbee uusseedd aass tthhee mmoottiioonn ccoommppoonneenntt ooff
  2352.      ootthheerr vvii ccoommmmaannddss,, iinn wwhhiicchh ccaassee aannyy tteexxtt ccooppiieedd iinnttoo aa
  2353.      bbuuffffeerr iiss cchhaarraacctteerr oorriieenntteedd..
  2354.  
  2355.      Line:    Unchanged.
  2356.      Column:  Set  to  the  searched-for character for the FF
  2357.               and ff commands, before the character for the tt
  2358.               command and after the character for the TT com-
  2359.               mand.
  2360.      Options: None.
  2361.  
  2362. [[ccoouunntt]] << mmoottiioonn
  2363. [[ccoouunntt]] >> mmoottiioonn
  2364.      Shift lines left or right.  Shift the number  of  lines
  2365.      in  the  region  specified by the count aanndd mmoottiioonn left
  2366.      (for the << command) or right (for the >> command) by the
  2367.      number  of  columns specified by the sshhiiffttwwiiddtthh option.
  2368.      Only whitespace characters are  deleted  when  shifting
  2369.      left.   Once  the first character in the line no longer
  2370.      contains  a  whitespace  character,  the  command  will
  2371.  
  2372.  
  2373.  
  2374.  
  2375.  
  2376.  
  2377.  
  2378.  
  2379.  
  2380.  
  2381. UUSSDD::1133--3388                      VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))
  2382.  
  2383.  
  2384.      succeed, but the line will not be modified.
  2385.  
  2386.      Line:    Unchanged.
  2387.      Column:  Set  to  the  first  nonblank character in the
  2388.               line.
  2389.      Options: Affected by the sshhiiffttwwiiddtthh option.
  2390.  
  2391. @@ bbuuffffeerr
  2392.      Execute a named buffer.  Execute the named buffer as vvii
  2393.      commands.  The buffer may include eexx commands, too, but
  2394.      they must be expressed as a :: command.  If  the  buffer
  2395.      is  line  oriented,  <newline> cchhaarraacctteerrss aarree llooggiiccaallllyy
  2396.      aappppeennddeedd ttoo eeaacchh lliinnee ooff tthhee bbuuffffeerr..  IIff tthhee bbuuffffeerr  iiss
  2397.      cchhaarraacctteerr  oorriieenntteedd,, <<nneewwlliinnee>> characters are logically
  2398.      appended to all but the last line in the buffer.
  2399.  
  2400.      If the buffer name is "@"",, oorr ""**", then the last buffer
  2401.      executed shall be used.  It is an error to specify "@@""
  2402.      oorr ""@@**" if there were no  previous  buffer  executions.
  2403.      The text of a buffer may contain a @@ command, and it is
  2404.      possible to create infinite loops in this manner.  (The
  2405.      <interrupt>  cchhaarraacctteerr  mmaayy  bbee  uusseedd  ttoo iinntteerrrruupptt tthhee
  2406.      lloooopp..))
  2407.  
  2408.      Line:    The current line is set as described  for  the
  2409.               command(s).
  2410.      Column:  The current column is set as described for the
  2411.               command(s).
  2412.      Options: None.
  2413.  
  2414. [[ccoouunntt]] AA
  2415.      Enter input mode, appending the text after the  end  of
  2416.      the  line.   If count iiss ssppeecciiffiieedd,, tthhee tteexxtt iiss rreeppeeaatt--
  2417.      eeddllyy iinnppuutt ccoouunntt -- 11 more times  after  input  mode  is
  2418.      exited.
  2419.  
  2420.      Line:    Set  to  the  last  line upon which characters
  2421.               were entered.
  2422.      Column:  Set to the last character entered.
  2423.      Options: Affected by the aallttwweerraassee,  aauuttooiinnddeenntt,  bbeeaauu--
  2424.               ttiiffyy,   sshhoowwmmaattcchh,  ttttyywweerraassee  and  wwrraappmmaarrggiinn
  2425.               options.
  2426.  
  2427. [[ccoouunntt]] BB
  2428.      Move backward count bbiiggwwoorrddss..  MMoovvee tthhee ccuurrssoorr bbaacckkwwaarrdd
  2429.      ttoo  tthhee bbeeggiinnnniinngg ooff aa bbiiggwwoorrdd bbyy rreeppeeaattiinngg tthhee ffoollllooww--
  2430.      iinngg aallggoorriitthhmm:: iiff tthhee ccuurrrreenntt ppoossiittiioonn iiss aatt tthhee bbeeggiinn--
  2431.      nniinngg ooff aa bbiiggwwoorrdd oorr tthhee cchhaarraacctteerr aatt tthhee ccuurrrreenntt ppoossii--
  2432.      ttiioonn ccaannnnoott bbee ppaarrtt ooff aa bbiiggwwoorrdd,,  mmoovvee  ttoo  tthhee  ffiirrsstt
  2433.      cchhaarraacctteerr ooff tthhee pprreecceeddiinngg bbiiggwwoorrdd..  OOtthheerrwwiissee,, mmoovvee ttoo
  2434.      tthhee ffiirrsstt cchhaarraacctteerr ooff tthhee bbiiggwwoorrdd aatt tthhee ccuurrrreenntt ppoossii--
  2435.      ttiioonn..   IIff  nnoo  pprreecceeddiinngg bbiiggwwoorrdd eexxiissttss oonn tthhee ccuurrrreenntt
  2436.      lliinnee,, mmoovvee ttoo tthhee ffiirrsstt cchhaarraacctteerr ooff tthhee  llaasstt  bbiiggwwoorrdd
  2437.  
  2438.  
  2439.  
  2440.  
  2441.  
  2442.  
  2443.  
  2444.  
  2445.  
  2446.  
  2447. VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))                      UUSSDD::1133--3399
  2448.  
  2449.  
  2450.      oonn tthhee ffiirrsstt pprreecceeddiinngg lliinnee tthhaatt ccoonnttaaiinnss aa bbiiggwwoorrdd..
  2451.  
  2452.      TThhee  BB  ccoommmmaanndd  mmaayy bbee uusseedd aass tthhee mmoottiioonn ccoommppoonneenntt ooff
  2453.      ootthheerr vvii ccoommmmaannddss,, iinn wwhhiicchh ccaassee aannyy tteexxtt ccooppiieedd iinnttoo aa
  2454.      bbuuffffeerr iiss cchhaarraacctteerr oorriieenntteedd..
  2455.  
  2456.      Line:    Set  to the line containing the word selected.
  2457.      Column:  Set  to  the  first  character  of  the   word
  2458.               selected.
  2459.      Options: None.
  2460.  
  2461. [[bbuuffffeerr]] [[ccoouunntt]] CC
  2462.      Change  text  from  the current position to the end-of-
  2463.      line.  If count iiss ssppeecciiffiieedd,, tthhee iinnppuutt  tteexxtt  rreeppllaacceess
  2464.      ffrroomm  tthhee  ccuurrrreenntt  ppoossiittiioonn  ttoo  tthhee eenndd--ooff--lliinnee,, pplluuss
  2465.      ccoouunntt -- 11 subsequent lines.
  2466.  
  2467.      Line:    Set to the last  line  upon  which  characters
  2468.               were entered.
  2469.      Column:  Set to the last character entered.
  2470.      Options: Affected  by  the aallttwweerraassee, aauuttooiinnddeenntt, bbeeaauu--
  2471.               ttiiffyy,  sshhoowwmmaattcchh,  ttttyywweerraassee  and   wwrraappmmaarrggiinn
  2472.               options.
  2473.  
  2474. [[bbuuffffeerr]] DD
  2475.      Delete  text  from  the current position to the end-of-
  2476.      line.
  2477.  
  2478.      It is not an error to execute the DD command on an empty
  2479.      line.
  2480.  
  2481.      Line:    Unchanged.
  2482.      Column:  Set  to the character before the current char-
  2483.               acter, or, column 1 if the cursor was on  col-
  2484.               umn 1.
  2485.      Options: None.
  2486.  
  2487. [[ccoouunntt]] EE
  2488.      Move  forward  count  eenndd--ooff--bbiiggwwoorrddss..  MMoovvee tthhee ccuurrssoorr
  2489.      ffoorrwwaarrdd ttoo tthhee eenndd ooff aa bbiiggwwoorrdd bbyy rreeppeeaattiinngg  tthhee  ffooll--
  2490.      lloowwiinngg aallggoorriitthhmm:: iiff tthhee ccuurrrreenntt ppoossiittiioonn iiss tthhee eenndd ooff
  2491.      aa bbiiggwwoorrdd oorr tthhee cchhaarraacctteerr aatt tthhaatt ppoossiittiioonn  ccaannnnoott  bbee
  2492.      ppaarrtt  ooff  aa  bbiiggwwoorrdd,, mmoovvee ttoo tthhee llaasstt cchhaarraacctteerr ooff tthhee
  2493.      ffoolllloowwiinngg bbiiggwwoorrdd..  OOtthheerrwwiissee,, mmoovvee ttoo tthhee llaasstt cchhaarraacc--
  2494.      tteerr ooff tthhee bbiiggwwoorrdd aatt tthhee ccuurrrreenntt ppoossiittiioonn..  IIff nnoo ssuucc--
  2495.      cceeeeddiinngg bbiiggwwoorrdd eexxiissttss oonn tthhee ccuurrrreenntt lliinnee,, mmoovvee ttoo tthhee
  2496.      llaasstt cchhaarraacctteerr ooff tthhee ffiirrsstt bbiiggwwoorrdd oonn tthhee nneexxtt ffoollllooww--
  2497.      iinngg lliinnee tthhaatt ccoonnttaaiinnss aa bbiiggwwoorrdd..
  2498.  
  2499.      TThhee EE ccoommmmaanndd mmaayy bbee uusseedd aass tthhee  mmoottiioonn  ccoommppoonneenntt  ooff
  2500.      ootthheerr vvii ccoommmmaannddss,, iinn wwhhiicchh ccaassee aannyy tteexxtt ccooppiieedd iinnttoo aa
  2501.      bbuuffffeerr iiss cchhaarraacctteerr oorriieenntteedd..
  2502.  
  2503.  
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512.  
  2513. UUSSDD::1133--4400                      VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))
  2514.  
  2515.  
  2516.      Line:    Set to the line containing the word  selected.
  2517.      Column:  Set   to   the  last  character  of  the  word
  2518.               selected.
  2519.      Options: None.
  2520.  
  2521. [[ccoouunntt]] FF <<cchhaarraacctteerr>>
  2522.      Search count ttiimmeess bbaacckkwwaarrdd tthhrroouugghh  tthhee  ccuurrrreenntt  lliinnee
  2523.      ffoorr <<cchhaarraacctteerr>>.
  2524.  
  2525.      The  FF  command  may be used as the motion component of
  2526.      other vvii commands, in which case any text copied into a
  2527.      buffer is character oriented.
  2528.  
  2529.      Line:    Unchanged.
  2530.      Column:  Set to the searched-for character.
  2531.      Options: None.
  2532.  
  2533. [[ccoouunntt]] GG
  2534.      Move  to  line  count,,  oorr tthhee llaasstt lliinnee ooff tthhee ffiillee iiff
  2535.      ccoouunntt not specified.
  2536.  
  2537.      The GG command is an absolute movement.  The  GG  command
  2538.      may  be  used  as the motion component of other vvii com-
  2539.      mands, in which case any text copied into a  buffer  is
  2540.      line oriented.
  2541.  
  2542.      Line:    Set  to  count,  if  specified, otherwise, the
  2543.               last line.
  2544.      Column:  Set to the first  nonblank  character  in  the
  2545.               line.
  2546.      Options: None.
  2547.  
  2548. [[ccoouunntt]] HH
  2549.      Move  to  the screen line count - 1 lliinneess bbeellooww tthhee ttoopp
  2550.      ooff tthhee ssccrreeeenn..
  2551.  
  2552.      TThhee HH ccoommmmaanndd iiss aann aabbssoolluuttee mmoovveemmeenntt..  TThhee  HH  ccoommmmaanndd
  2553.      mmaayy  bbee  uusseedd  aass tthhee mmoottiioonn ccoommppoonneenntt ooff ootthheerr vvii ccoomm--
  2554.      mmaannddss,, iinn wwhhiicchh ccaassee aannyy tteexxtt ccooppiieedd iinnttoo aa  bbuuffffeerr  iiss
  2555.      lliinnee oorriieenntteedd..
  2556.  
  2557.      Line:    Set  to the line count - 1 lliinneess bbeellooww tthhee ttoopp
  2558.               ooff tthhee ssccrreeeenn..
  2559.      Column:  Set to the first  nonblank  character  of  the
  2560.               _s_c_r_e_e_n line.
  2561.      Options: None.
  2562.  
  2563. [[ccoouunntt]] II
  2564.      Enter  input  mode, inserting the text at the beginning
  2565.      of the line.  If count iiss ssppeecciiffiieedd,, tthhee tteexxtt iinnppuutt  iiss
  2566.      rreeppeeaatteeddllyy iinnppuutt ccoouunntt -- 11 more times.
  2567.  
  2568.  
  2569.  
  2570.  
  2571.  
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.  
  2579. VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))                      UUSSDD::1133--4411
  2580.  
  2581.  
  2582.      Line:    Set  to  the  last  line upon which characters
  2583.               were entered.
  2584.      Column:  Set to the last character entered.
  2585.      Options: None.
  2586.  
  2587. [[ccoouunntt]] JJ
  2588.      Join lines.  If count iiss  ssppeecciiffiieedd,,  ccoouunntt  lines  are
  2589.      joined;  a  minimum  of  two  lines  are always joined,
  2590.      regardless of the value of count..
  2591.  
  2592.      IIff tthhee ccuurrrreenntt lliinnee eennddss wwiitthh aa  wwhhiitteessppaaccee  cchhaarraacctteerr,,
  2593.      aallll  wwhhiitteessppaaccee iiss ssttrriippppeedd ffrroomm tthhee nneexxtt lliinnee..  OOtthheerr--
  2594.      wwiissee,, iiff tthhee nneexxtt lliinnee ssttaarrttss wwiitthh aa  ooppeenn  ppaarreenntthheessiiss
  2595.      ((""((")  do nothing.  Otherwise, if the current line ends
  2596.      with a question mark ("?"")),, ppeerriioodd ((""..")   or  exclama-
  2597.      tion point ("!"")),, iinnsseerrtt ttwwoo ssppaacceess..  OOtthheerrwwiissee,, iinnsseerrtt
  2598.      aa ssiinnggllee ssppaaccee..
  2599.  
  2600.      IItt iiss nnoott aann eerrrroorr ttoo jjooiinn lliinneess ppaasstt tthhee  eenndd  ooff  tthhee
  2601.      ffiillee,, ii..ee.. lliinneess tthhaatt ddoo nnoott eexxiisstt..
  2602.  
  2603.      Line:    Unchanged.
  2604.      Column:  Set  to the character after the last character
  2605.               of the next-to-last joined line.
  2606.      Options: None.
  2607.  
  2608. [[ccoouunntt]] LL
  2609.      Move to the screen line count - 1 lliinneess aabboovvee tthhee  bboott--
  2610.      ttoomm ooff tthhee ssccrreeeenn..
  2611.  
  2612.      TThhee  LL  ccoommmmaanndd iiss aann aabbssoolluuttee mmoovveemmeenntt..  TThhee LL ccoommmmaanndd
  2613.      mmaayy bbee uusseedd aass tthhee mmoottiioonn ccoommppoonneenntt ooff  ootthheerr  vvii  ccoomm--
  2614.      mmaannddss,,  iinn  wwhhiicchh ccaassee aannyy tteexxtt ccooppiieedd iinnttoo aa bbuuffffeerr iiss
  2615.      lliinnee oorriieenntteedd..
  2616.  
  2617.      Line:    Set to the line count - 1 lliinneess aabboovvee tthhee bboott--
  2618.               ttoomm ooff tthhee ssccrreeeenn..
  2619.      Column:  Set  to  the  first  nonblank character of the
  2620.               _s_c_r_e_e_n line.
  2621.      Options: None.
  2622.  
  2623.  MM
  2624.      Move to the screen line in the middle of the screen.
  2625.  
  2626.      The MM command is an absolute movement.  The  MM  command
  2627.      may  be  used  as the motion component of other vvii com-
  2628.      mands, in which case any text copied into a  buffer  is
  2629.      line oriented.
  2630.  
  2631.      Historically,  any count ssppeecciiffiieedd ttoo tthhee MM ccoommmmaanndd wwaass
  2632.      iiggnnoorreedd..
  2633.  
  2634.  
  2635.  
  2636.  
  2637.  
  2638.  
  2639.  
  2640.  
  2641.  
  2642.  
  2643.  
  2644.  
  2645. UUSSDD::1133--4422                      VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))
  2646.  
  2647.  
  2648.      Line:    Set to the line in the middle of the screen.
  2649.      Column:  Set to the first  nonblank  character  of  the
  2650.               _s_c_r_e_e_n line.
  2651.      Options: None.
  2652.  
  2653. [[ccoouunntt]] OO
  2654.      Enter  input  mode,  appending text in a new line above
  2655.      the current line.  If  count  iiss  ssppeecciiffiieedd,,  tthhee  tteexxtt
  2656.      iinnppuutt iiss rreeppeeaatteeddllyy iinnppuutt ccoouunntt -- 11 more times.
  2657.  
  2658.      Historically,  any count ssppeecciiffiieedd ttoo tthhee OO ccoommmmaanndd wwaass
  2659.      iiggnnoorreedd..
  2660.  
  2661.      Line:    Set to the last  line  upon  which  characters
  2662.               were entered.
  2663.      Column:  Set to the last character entered.
  2664.      Options: Affected  by  the aallttwweerraassee, aauuttooiinnddeenntt, bbeeaauu--
  2665.               ttiiffyy,  sshhoowwmmaattcchh,  ttttyywweerraassee  and   wwrraappmmaarrggiinn
  2666.               options.
  2667.  
  2668. [[bbuuffffeerr]] PP
  2669.      Insert  text  from a buffer.  Text from the buffer (the
  2670.      unnamed buffer by default) is inserted before the  cur-
  2671.      rent  column or, if the buffer is line oriented, before
  2672.      the current line.
  2673.  
  2674.      Line:    Set to the lowest numbered line insert, if the
  2675.               buffer  is line oriented, otherwise unchanged.
  2676.      Column:  Set to the first  nonblank  character  of  the
  2677.               appended text, if the buffer is line oriented,
  2678.               otherwise, the last character of the  appended
  2679.               text.
  2680.      Options: None.
  2681.  
  2682. QQ
  2683.      Exit vvii (or visual) mode and switch to eexx mode.
  2684.  
  2685.      Line:    Unchanged.
  2686.      Column:  No longer relevant.
  2687.      Options: None.
  2688.  
  2689. [[ccoouunntt]] RR
  2690.      Enter  input mode, replacing the characters in the cur-
  2691.      rent line.  If count iiss ssppeecciiffiieedd,, tthhee  tteexxtt  iinnppuutt  iiss
  2692.      rreeppeeaatteeddllyy iinnppuutt ccoouunntt -- 11 more times.
  2693.  
  2694.      If  the  end  of  the  current line is reached, no more
  2695.      characters are  replaced  and  any  further  characters
  2696.      input are appended to the line.
  2697.  
  2698.      Line:    Set  to  the  last  line upon which characters
  2699.               were entered.
  2700.  
  2701.  
  2702.  
  2703.  
  2704.  
  2705.  
  2706.  
  2707.  
  2708.  
  2709.  
  2710.  
  2711. VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))                      UUSSDD::1133--4433
  2712.  
  2713.  
  2714.      Column:  Set to the last character entered.
  2715.      Options: Affected by the aallttwweerraassee,  aauuttooiinnddeenntt,  bbeeaauu--
  2716.               ttiiffyy,   sshhoowwmmaattcchh,  ttttyywweerraassee  and  wwrraappmmaarrggiinn
  2717.               options.
  2718.  
  2719. [[bbuuffffeerr]] [[ccoouunntt]] SS
  2720.      Substitute count lliinneess..
  2721.  
  2722.      Line:    Set to the last  line  upon  which  characters
  2723.               were entered.
  2724.      Column:  Set to the last character entered.
  2725.      Options: Affected  by  the aallttwweerraassee, aauuttooiinnddeenntt, bbeeaauu--
  2726.               ttiiffyy,  sshhoowwmmaattcchh,  ttttyywweerraassee  and   wwrraappmmaarrggiinn
  2727.               options.
  2728.  
  2729. [[ccoouunntt]] TT <<cchhaarraacctteerr>>
  2730.      Search  backward, count ttiimmeess,, tthhrroouugghh tthhee ccuurrrreenntt lliinnee
  2731.      ffoorr tthhee cchhaarraacctteerr _a_f_t_e_r tthhee ssppeecciiffiieedd <<cchhaarraacctteerr>>_.
  2732.  
  2733.      _T_h_e TT _c_o_m_m_a_n_d _m_a_y _b_e _u_s_e_d _a_s _t_h_e  _m_o_t_i_o_n  _c_o_m_p_o_n_e_n_t  _o_f
  2734.      _o_t_h_e_r vvii _c_o_m_m_a_n_d_s_, _i_n _w_h_i_c_h _c_a_s_e _a_n_y _t_e_x_t _c_o_p_i_e_d _i_n_t_o _a
  2735.      _b_u_f_f_e_r _i_s _c_h_a_r_a_c_t_e_r _o_r_i_e_n_t_e_d_.
  2736.  
  2737.      Line:    Unchanged.
  2738.      Column:  Set to the character  _a_f_t_e_r  the  searched-for
  2739.               character.
  2740.      Options: None.
  2741.  
  2742. UU
  2743.      Restore the current line to its state before the cursor
  2744.      last moved to it.
  2745.  
  2746.      Line:    Unchanged.
  2747.      Column:  The first character in the line.
  2748.      Options: None.
  2749.  
  2750. [[ccoouunntt]] WW
  2751.      Move forward count bbiiggwwoorrddss..  MMoovvee tthhee  ccuurrssoorr  ffoorrwwaarrdd
  2752.      ttoo  tthhee bbeeggiinnnniinngg ooff aa bbiiggwwoorrdd bbyy rreeppeeaattiinngg tthhee ffoollllooww--
  2753.      iinngg aallggoorriitthhmm:: iiff tthhee ccuurrrreenntt ppoossiittiioonn iiss wwiitthhiinn aa bbiigg--
  2754.      wwoorrdd  oorr  tthhee cchhaarraacctteerr aatt tthhaatt ppoossiittiioonn ccaannnnoott bbee ppaarrtt
  2755.      ooff aa bbiiggwwoorrdd,, mmoovvee ttoo tthhee ffiirrsstt cchhaarraacctteerr ooff  tthhee  nneexxtt
  2756.      bbiiggwwoorrdd..   IIff  nnoo ssuubbsseeqquueenntt bbiiggwwoorrdd eexxiissttss oonn tthhee ccuurr--
  2757.      rreenntt lliinnee,, mmoovvee ttoo tthhee ffiirrsstt  cchhaarraacctteerr  ooff  tthhee  ffiirrsstt
  2758.      bbiiggwwoorrdd  oonn  tthhee  ffiirrsstt  ffoolllloowwiinngg lliinnee tthhaatt ccoonnttaaiinnss aa
  2759.      bbiiggwwoorrdd..
  2760.  
  2761.      TThhee WW ccoommmmaanndd mmaayy bbee uusseedd aass tthhee  mmoottiioonn  ccoommppoonneenntt  ooff
  2762.      ootthheerr vvii ccoommmmaannddss,, iinn wwhhiicchh ccaassee aannyy tteexxtt ccooppiieedd iinnttoo aa
  2763.      bbuuffffeerr iiss cchhaarraacctteerr oorriieenntteedd..
  2764.  
  2765.      Line:    The line containing the word selected.
  2766.  
  2767.  
  2768.  
  2769.  
  2770.  
  2771.  
  2772.  
  2773.  
  2774.  
  2775.  
  2776.  
  2777. UUSSDD::1133--4444                      VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))
  2778.  
  2779.  
  2780.      Column:  The first character of the word selected.
  2781.      Options: None.
  2782.  
  2783. [[bbuuffffeerr]] [[ccoouunntt]] XX
  2784.      Delete count cchhaarraacctteerrss bbeeffoorree tthhee ccuurrssoorr..  IIff tthhee nnuumm--
  2785.      bbeerr  ooff  cchhaarraacctteerrss  ttoo  bbee  ddeelleetteedd iiss ggrreeaatteerr tthhaann oorr
  2786.      eeqquuaall ttoo tthhee nnuummbbeerr ooff cchhaarraacctteerrss ttoo tthhee  bbeeggiinnnniinngg  ooff
  2787.      tthhee lliinnee,, aallll ooff tthhee cchhaarraacctteerrss bbeeffoorree tthhee ccuurrrreenntt ccuurr--
  2788.      ssoorr  ppoossiittiioonn,,  ttoo  tthhee  bbeeggiinnnniinngg  ooff  tthhee  lliinnee,,  aarree
  2789.      ddeelleetteedd..
  2790.  
  2791.      Line:    Unchanged.
  2792.      Column:  Set  to  the current character minus count, or
  2793.               the first character if count is  greater  than
  2794.               the  number  of  characters in the line before
  2795.               the cursor.
  2796.      Options: None.
  2797.  
  2798. [[bbuuffffeerr]] [[ccoouunntt]] YY
  2799.      Copy (or "yank") count lliinneess iinnttoo tthhee ssppeecciiffiieedd bbuuffffeerr..
  2800.  
  2801.      Line:    Unchanged.
  2802.      Column:  Unchanged.
  2803.      Options: None.
  2804.  
  2805. ZZZZ
  2806.      Write  the  file and exit vvii.  The file is only written
  2807.      if it has been modified since the last  complete  write
  2808.      of the file to any file.
  2809.  
  2810.      The  ZZZZ  command will exit the editor after writing the
  2811.      file, if there are no further files to edit.   Entering
  2812.      two  "quit"  commands  (i.e.  wwqq, qquuiitt, xxiitt or ZZZZ) in a
  2813.      row will override this check and the editor will  exit,
  2814.      ignoring any files that have not yet been edited.
  2815.  
  2816.      Line:    Unchanged.
  2817.      Column:  Unchanged.
  2818.      Options: None.
  2819.  
  2820. [[ccoouunntt]] [[[[
  2821.      Back up count sseeccttiioonn bboouunnddaarriieess..
  2822.  
  2823.      TThhee [[[[ ccoommmmaanndd iiss aann aabbssoolluuttee mmoovveemmeenntt..  TThhee [[[[ ccoommmmaanndd
  2824.      mmaayy bbee uusseedd aass tthhee mmoottiioonn ccoommppoonneenntt ooff  ootthheerr  vvii  ccoomm--
  2825.      mmaannddss,,  iinn  wwhhiicchh ccaassee aannyy tteexxtt ccooppiieedd iinnttoo aa bbuuffffeerr iiss
  2826.      cchhaarraacctteerr oorriieenntteedd,, uunnlleessss  tthhee  ssttaarrttiinngg  ppoossiittiioonn  iiss
  2827.      ccoolluummnn 00,, iinn wwhhiicchh ccaassee iitt iiss lliinnee oorriieenntteedd..
  2828.  
  2829.      IItt iiss aann eerrrroorr iiff tthhee mmoovveemmeenntt iiss ppaasstt tthhee bbeeggiinnnniinngg ooff
  2830.      tthhee ffiillee..
  2831.  
  2832.  
  2833.  
  2834.  
  2835.  
  2836.  
  2837.  
  2838.  
  2839.  
  2840.  
  2841.  
  2842.  
  2843. VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))                      UUSSDD::1133--4455
  2844.  
  2845.  
  2846.      Line:    Set to the previous line that is count sseeccttiioonn
  2847.               bboouunnddaarriieess bbaacckk,, oorr tthhee ffiirrsstt lliinnee ooff tthhee ffiillee
  2848.               iiff nnoo mmoorree sseeccttiioonn bboouunnddaarriieess eexxiisstt  pprreecceeddiinngg
  2849.               tthhee ccuurrrreenntt lliinnee..
  2850.      Column:  Set  to  the  first  nonblank character in the
  2851.               line.
  2852.      Options: Affected by the sseeccttiioonnss option.
  2853.  
  2854. [[ccoouunntt]] ]]]]
  2855.      Move forward count sseeccttiioonn bboouunnddaarriieess..
  2856.  
  2857.      TThhee ]]]] ccoommmmaanndd iiss aann aabbssoolluuttee mmoovveemmeenntt..  TThhee ]]]] ccoommmmaanndd
  2858.      mmaayy  bbee  uusseedd  aass tthhee mmoottiioonn ccoommppoonneenntt ooff ootthheerr vvii ccoomm--
  2859.      mmaannddss,, iinn wwhhiicchh ccaassee aannyy tteexxtt ccooppiieedd iinnttoo aa  bbuuffffeerr  iiss
  2860.      cchhaarraacctteerr  oorriieenntteedd,,  uunnlleessss  tthhee  ssttaarrttiinngg ppoossiittiioonn iiss
  2861.      ccoolluummnn 00,, iinn wwhhiicchh ccaassee iitt iiss lliinnee oorriieenntteedd..
  2862.  
  2863.      IItt iiss aann eerrrroorr iiff tthhee mmoovveemmeenntt iiss ppaasstt tthhee eenndd  ooff  tthhee
  2864.      ffiillee..
  2865.  
  2866.      Line:    Set  to  the line that is count sseeccttiioonn bboouunndd--
  2867.               aarriieess ffoorrwwaarrdd,, oorr ttoo tthhee llaasstt lliinnee ooff tthhee ffiillee
  2868.               iiff  nnoo mmoorree sseeccttiioonn bboouunnddaarriieess eexxiisstt ffoolllloowwiinngg
  2869.               tthhee ccuurrrreenntt lliinnee..
  2870.      Column:  Set to the first  nonblank  character  in  the
  2871.               line.
  2872.      Options: Affected by the sseeccttiioonnss option.
  2873.  
  2874. ^^
  2875.      Move to first nonblank character on the current line.
  2876.  
  2877.      The  ^^  command  may be used as the motion component of
  2878.      other vvii commands, in which case any text copied into a
  2879.      buffer is character oriented.
  2880.  
  2881.      Line:    Unchanged.
  2882.      Column:  Set  to  the  first  nonblank character of the
  2883.               current line.
  2884.      Options: None.
  2885.  
  2886. [[ccoouunntt]] __
  2887.      Move down count - 1 lliinneess,, ttoo tthhee ffiirrsstt nnoonnbbllaannkk  cchhaarr--
  2888.      aacctteerr..   TThhee __ ccoommmmaanndd mmaayy bbee uusseedd aass tthhee mmoottiioonn ccoommppoo--
  2889.      nneenntt ooff ootthheerr vvii  ccoommmmaannddss,,  iinn  wwhhiicchh  ccaassee  aannyy  tteexxtt
  2890.      ccooppiieedd iinnttoo aa bbuuffffeerr iiss lliinnee oorriieenntteedd..
  2891.  
  2892.      IItt  iiss  nnoott  aann eerrrroorr ttoo eexxeeccuuttee tthhee __ ccoommmmaanndd wwhheenn tthhee
  2893.      ccuurrssoorr iiss oonn tthhee ffiirrsstt cchhaarraacctteerr iinn tthhee lliinnee..
  2894.  
  2895.      Line:    The current line plus count - 1..
  2896.      Column:  The first nonblank character in the line.
  2897.      Options: None.
  2898.  
  2899.  
  2900.  
  2901.  
  2902.  
  2903.  
  2904.  
  2905.  
  2906.  
  2907.  
  2908.  
  2909. UUSSDD::1133--4466                      VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))
  2910.  
  2911.  
  2912. [[ccoouunntt]] aa
  2913.      Enter input mode, appending the text after the  cursor.
  2914.      If  count  iiss  ssppeecciiffiieedd,,  tthhee tteexxtt iinnppuutt iiss rreeppeeaatteeddllyy
  2915.      iinnppuutt ccoouunntt -- 11 more times.
  2916.  
  2917.      Line:    Set to the last  line  upon  which  characters
  2918.               were entered.
  2919.      Column:  Set to the last character entered.
  2920.      Options: Affected  by  the aallttwweerraassee, aauuttooiinnddeenntt, bbeeaauu--
  2921.               ttiiffyy,  sshhoowwmmaattcchh,  ttttyywweerraassee  and   wwrraappmmaarrggiinn
  2922.               options.
  2923.  
  2924. [[ccoouunntt]] bb
  2925.      Move backward count wwoorrddss..  MMoovvee tthhee ccuurrssoorr bbaacckkwwaarrdd ttoo
  2926.      tthhee bbeeggiinnnniinngg ooff aa  wwoorrdd  bbyy  rreeppeeaattiinngg  tthhee  ffoolllloowwiinngg
  2927.      aallggoorriitthhmm::  iiff tthhee ccuurrrreenntt ppoossiittiioonn iiss aatt tthhee bbeeggiinnnniinngg
  2928.      ooff aa wwoorrdd,, mmoovvee ttoo tthhee ffiirrsstt cchhaarraacctteerr ooff tthhee pprreecceeddiinngg
  2929.      wwoorrdd..   OOtthheerrwwiissee,,  tthhee  ccuurrrreenntt  ppoossiittiioonn mmoovveess ttoo tthhee
  2930.      ffiirrsstt cchhaarraacctteerr ooff tthhee wwoorrdd aatt  tthhee  ccuurrrreenntt  ppoossiittiioonn..
  2931.      IIff  nnoo  pprreecceeddiinngg wwoorrdd eexxiissttss oonn tthhee ccuurrrreenntt lliinnee,, mmoovvee
  2932.      ttoo tthhee ffiirrsstt cchhaarraacctteerr ooff tthhee llaasstt wwoorrdd  oonn  tthhee  ffiirrsstt
  2933.      pprreecceeddiinngg lliinnee tthhaatt ccoonnttaaiinnss aa wwoorrdd..
  2934.  
  2935.      TThhee  bb  ccoommmmaanndd  mmaayy bbee uusseedd aass tthhee mmoottiioonn ccoommppoonneenntt ooff
  2936.      ootthheerr vvii ccoommmmaannddss,, iinn wwhhiicchh ccaassee aannyy tteexxtt ccooppiieedd iinnttoo aa
  2937.      bbuuffffeerr iiss cchhaarraacctteerr oorriieenntteedd..
  2938.  
  2939.      Line:    Set  to the line containing the word selected.
  2940.      Column:  Set  to  the  first  character  of  the   word
  2941.               selected.
  2942.      Options: None.
  2943.  
  2944. [[bbuuffffeerr]] [[ccoouunntt]] cc mmoottiioonn
  2945.      Change  the  region  of text specified by the count aanndd
  2946.      mmoottiioonn.  If only part of a  single  line  is  affected,
  2947.      then  the last character being changed is marked with a
  2948.      "$""..  OOtthheerrwwiissee,, tthhee rreeggiioonn ooff  tteexxtt  iiss  ddeelleetteedd,,  aanndd
  2949.      iinnppuutt mmooddee iiss eenntteerreedd..
  2950.  
  2951.      Line:    Set  to  the  last  line upon which characters
  2952.               were entered.
  2953.      Column:  Set to the last character entered.
  2954.      Options: Affected by the aallttwweerraassee,  aauuttooiinnddeenntt,  bbeeaauu--
  2955.               ttiiffyy,   sshhoowwmmaattcchh,  ttttyywweerraassee  and  wwrraappmmaarrggiinn
  2956.               options.
  2957.  
  2958. [[bbuuffffeerr]] [[ccoouunntt]] dd mmoottiioonn
  2959.      Delete the region of text specified by  the  count  aanndd
  2960.      mmoottiioonn.
  2961.  
  2962.      Line:    Set to the line where the region starts.
  2963.      Column:  Set  to  the first character in the line after
  2964.               the last character in the region.  If no  such
  2965.  
  2966.  
  2967.  
  2968.  
  2969.  
  2970.  
  2971.  
  2972.  
  2973.  
  2974.  
  2975. VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))                      UUSSDD::1133--4477
  2976.  
  2977.  
  2978.               character  exists,  set  to the last character
  2979.               before the region.
  2980.      Options: None.
  2981.  
  2982. [[ccoouunntt]] ee
  2983.      Move forward count eenndd--ooff--wwoorrddss..  MMoovvee tthhee ccuurrssoorr  ffoorr--
  2984.      wwaarrdd  ttoo  tthhee  eenndd ooff aa wwoorrdd bbyy rreeppeeaattiinngg tthhee ffoolllloowwiinngg
  2985.      aallggoorriitthhmm:: iiff tthhee ccuurrrreenntt ppoossiittiioonn  iiss  tthhee  eenndd  ooff  aa
  2986.      wwoorrdd,, mmoovvee ttoo tthhee llaasstt cchhaarraacctteerr ooff tthhee ffoolllloowwiinngg wwoorrdd..
  2987.      OOtthheerrwwiissee,, mmoovvee ttoo tthhee llaasstt cchhaarraacctteerr ooff  tthhee  wwoorrdd  aatt
  2988.      tthhee  ccuurrrreenntt ppoossiittiioonn..  IIff nnoo ssuucccceeeeddiinngg wwoorrdd eexxiissttss oonn
  2989.      tthhee ccuurrrreenntt lliinnee,, mmoovvee ttoo tthhee  llaasstt  cchhaarraacctteerr  ooff  tthhee
  2990.      ffiirrsstt  wwoorrdd  oonn tthhee nneexxtt ffoolllloowwiinngg lliinnee tthhaatt ccoonnttaaiinnss aa
  2991.      wwoorrdd..
  2992.  
  2993.      TThhee ee ccoommmmaanndd mmaayy bbee uusseedd aass tthhee  mmoottiioonn  ccoommppoonneenntt  ooff
  2994.      ootthheerr vvii ccoommmmaannddss,, iinn wwhhiicchh ccaassee aannyy tteexxtt ccooppiieedd iinnttoo aa
  2995.      bbuuffffeerr iiss cchhaarraacctteerr oorriieenntteedd..
  2996.  
  2997.      Line:    Set to the line containing the word  selected.
  2998.      Column:  Set   to   the  last  character  of  the  word
  2999.               selected.
  3000.      Options: None.
  3001.  
  3002. [[ccoouunntt]] ff <<cchhaarraacctteerr>>
  3003.      Search forward, count ttiimmeess,, tthhrroouugghh tthhee  rreesstt  ooff  tthhee
  3004.      ccuurrrreenntt lliinnee ffoorr <<cchhaarraacctteerr>>.
  3005.  
  3006.      The  ff  command  may be used as the motion component of
  3007.      other vvii commands, in which case any text copied into a
  3008.      buffer is character oriented.
  3009.  
  3010.      Line:    Unchanged.
  3011.      Column:  Set to the searched-for character.
  3012.      Options: None.
  3013.  
  3014. [[ccoouunntt]] ii
  3015.      Enter input mode, inserting the text before the cursor.
  3016.      If count iiss ssppeecciiffiieedd,, tthhee  tteexxtt  iinnppuutt  iiss  rreeppeeaatteeddllyy
  3017.      iinnppuutt ccoouunntt -- 11 more times.
  3018.  
  3019.      Line:    Set  to  the  last  line upon which characters
  3020.               were entered.
  3021.      Column:  Set to the last character entered.
  3022.      Options: Affected by the aallttwweerraassee,  aauuttooiinnddeenntt,  bbeeaauu--
  3023.               ttiiffyy,   sshhoowwmmaattcchh,  ttttyywweerraassee  and  wwrraappmmaarrggiinn
  3024.               options.
  3025.  
  3026. mm <<cchhaarraacctteerr>>
  3027.      Save the current context (line and column) as  <charac-
  3028.      ter>..   TThhee eexxaacctt ppoossiittiioonn iiss rreeffeerrrreedd ttoo bbyy ""``<<cchhaarraacc--
  3029.      tteerr>>".  The line is referred to by "'<character>""..
  3030.  
  3031.  
  3032.  
  3033.  
  3034.  
  3035.  
  3036.  
  3037.  
  3038.  
  3039.  
  3040.  
  3041. UUSSDD::1133--4488                      VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))
  3042.  
  3043.  
  3044.      HHiissttoorriiccaallllyy,, <<cchhaarraacctteerr>> was restricted to  lower-case
  3045.      letters.  NNvvii permits the use of any character.
  3046.  
  3047.      Line:    Unchanged.
  3048.      Column:  Unchanged.
  3049.      Options: None.
  3050.  
  3051. [[ccoouunntt]] oo
  3052.      Enter  input  mode,  appending text in a new line under
  3053.      the current line.  If  count  iiss  ssppeecciiffiieedd,,  tthhee  tteexxtt
  3054.      iinnppuutt iiss rreeppeeaatteeddllyy iinnppuutt ccoouunntt -- 11 more times.
  3055.  
  3056.      Historically,  any count ssppeecciiffiieedd ttoo tthhee oo ccoommmmaanndd wwaass
  3057.      iiggnnoorreedd..
  3058.  
  3059.      Line:    Set to the last  line  upon  which  characters
  3060.               were entered.
  3061.      Column:  Set to the last character entered.
  3062.      Options: Affected  by  the aallttwweerraassee, aauuttooiinnddeenntt, bbeeaauu--
  3063.               ttiiffyy,  sshhoowwmmaattcchh,  ttttyywweerraassee  and   wwrraappmmaarrggiinn
  3064.               options.
  3065.  
  3066. [[bbuuffffeerr]] pp
  3067.      Append  text  from a buffer.  Text from the buffer (the
  3068.      unnamed buffer by default) is appended after  the  cur-
  3069.      rent  column  or, if the buffer is line oriented, after
  3070.      the current line.
  3071.  
  3072.      Line:    Set to the first line appended, if the  buffer
  3073.               is line oriented, otherwise unchanged.
  3074.      Column:  Set  to  the  first  nonblank character of the
  3075.               appended text if the buffer is line  oriented,
  3076.               otherwise,  the last character of the appended
  3077.               text.
  3078.      Options: None.
  3079.  
  3080. [[ccoouunntt]] rr <<cchhaarraacctteerr>>
  3081.      Replace characters.  The next count cchhaarraacctteerrss  iinn  tthhee
  3082.      lliinnee  aarree rreeppllaacceedd wwiitthh <<cchhaarraacctteerr>>.  Replacing charac-
  3083.      ters with <newline> cchhaarraacctteerrss rreessuullttss iinn ccrreeaattiinngg nneeww,,
  3084.      eemmppttyy lliinneess iinnttoo tthhee ffiillee..
  3085.  
  3086.      IIff <<cchhaarraacctteerr>> is <escape>,, tthhee ccoommmmaanndd iiss ccaanncceelllleedd..
  3087.  
  3088.      Line:    Unchanged  unless the replacement character is
  3089.               a <newline>,, iinn wwhhiicchh ccaassee iitt iiss  sseett  ttoo  tthhee
  3090.               ccuurrrreenntt lliinnee pplluuss ccoouunntt -- 11.
  3091.      Column:  Set to the last character replaced, unless the
  3092.               replacement character is a <newline>, in which
  3093.               case  the  cursor  is  in column 1 of the last
  3094.               line inserted.
  3095.      Options: None.
  3096.  
  3097.  
  3098.  
  3099.  
  3100.  
  3101.  
  3102.  
  3103.  
  3104.  
  3105.  
  3106.  
  3107. VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))                      UUSSDD::1133--4499
  3108.  
  3109.  
  3110. [[bbuuffffeerr]] [[ccoouunntt]] ss
  3111.      Substitute count cchhaarraacctteerrss iinn tthhee ccuurrrreenntt lliinnee  ssttaarrtt--
  3112.      iinngg wwiitthh tthhee ccuurrrreenntt cchhaarraacctteerr..
  3113.  
  3114.      Line:    Set  to  the  last  line upon which characters
  3115.               were entered.
  3116.      Column:  Set to the last character entered.
  3117.      Options: Affected by the aallttwweerraassee,  aauuttooiinnddeenntt,  bbeeaauu--
  3118.               ttiiffyy,   sshhoowwmmaattcchh,  ttttyywweerraassee  and  wwrraappmmaarrggiinn
  3119.               options.
  3120.  
  3121. [[ccoouunntt]] tt <<cchhaarraacctteerr>>
  3122.      Search forward, count ttiimmeess,, tthhrroouugghh tthhee  ccuurrrreenntt  lliinnee
  3123.      ffoorr tthhee cchhaarraacctteerr iimmmmeeddiiaatteellyy _b_e_f_o_r_e <<cchhaarraacctteerr>>_.
  3124.  
  3125.      _T_h_e  tt  _c_o_m_m_a_n_d  _m_a_y _b_e _u_s_e_d _a_s _t_h_e _m_o_t_i_o_n _c_o_m_p_o_n_e_n_t _o_f
  3126.      _o_t_h_e_r vvii _c_o_m_m_a_n_d_s_, _i_n _w_h_i_c_h _c_a_s_e _a_n_y _t_e_x_t _c_o_p_i_e_d _i_n_t_o _a
  3127.      _b_u_f_f_e_r _i_s _c_h_a_r_a_c_t_e_r _o_r_i_e_n_t_e_d_.
  3128.  
  3129.      Line:    Unchanged.
  3130.      Column:  Set  to  the character _b_e_f_o_r_e the searched-for
  3131.               character.
  3132.      Options: None.
  3133.  
  3134. uu
  3135.      Undo the last change made to the  file.   If  repeated,
  3136.      the  uu command alternates between these two states, and
  3137.      is its own inverse.  When used  after  an  insert  that
  3138.      inserted  text  on  more  than  one line, the lines are
  3139.      saved in the numeric buffers.
  3140.  
  3141.      The ..  command, when used immediately after the uu  com-
  3142.      mand,  causes  the  change  log to be rolled forward or
  3143.      backward, depending on the action of the uu command.
  3144.  
  3145.      Line:    Set to the position of the first line changed,
  3146.               if  the reversal affects only one line or rep-
  3147.               resents an addition or change; otherwise,  the
  3148.               line preceding the deleted text.
  3149.      Column:  Set  to  the cursor position before the change
  3150.               was made.
  3151.      Options: None.
  3152.  
  3153. [[ccoouunntt]] ww
  3154.      Move forward count wwoorrddss..  MMoovvee tthhee ccuurrssoorr  ffoorrwwaarrdd  ttoo
  3155.      tthhee  bbeeggiinnnniinngg  ooff  aa  wwoorrdd  bbyy rreeppeeaattiinngg tthhee ffoolllloowwiinngg
  3156.      aallggoorriitthhmm:: iiff tthhee ccuurrrreenntt ppoossiittiioonn iiss aatt tthhee  bbeeggiinnnniinngg
  3157.      ooff  aa  wwoorrdd,,  mmoovvee  ttoo  tthhee ffiirrsstt cchhaarraacctteerr ooff tthhee nneexxtt
  3158.      wwoorrdd..  IIff nnoo ssuubbsseeqquueenntt  wwoorrdd  eexxiissttss  oonn  tthhee  ccuurrrreenntt
  3159.      lliinnee,,  mmoovvee ttoo tthhee ffiirrsstt cchhaarraacctteerr ooff tthhee ffiirrsstt wwoorrdd oonn
  3160.      tthhee ffiirrsstt ffoolllloowwiinngg lliinnee tthhaatt ccoonnttaaiinnss aa wwoorrdd..
  3161.  
  3162.      TThhee ww ccoommmmaanndd mmaayy bbee uusseedd aass tthhee  mmoottiioonn  ccoommppoonneenntt  ooff
  3163.  
  3164.  
  3165.  
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171.  
  3172.  
  3173. UUSSDD::1133--5500                      VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))
  3174.  
  3175.  
  3176.      ootthheerr vvii ccoommmmaannddss,, iinn wwhhiicchh ccaassee aannyy tteexxtt ccooppiieedd iinnttoo aa
  3177.      bbuuffffeerr iiss cchhaarraacctteerr oorriieenntteedd..
  3178.  
  3179.      Line:    Set to the line containing the word  selected.
  3180.      Column:  Set   to  the  first  character  of  the  word
  3181.               selected.
  3182.      Options: None.
  3183.  
  3184. [[bbuuffffeerr]] [[ccoouunntt]] xx
  3185.      Delete count cchhaarraacctteerrss..  TThhee ddeelleettiioonn iiss aatt  tthhee  ccuurr--
  3186.      rreenntt  cchhaarraacctteerr  ppoossiittiioonn..  IIff tthhee nnuummbbeerr ooff cchhaarraacctteerrss
  3187.      ttoo bbee ddeelleetteedd iiss ggrreeaatteerr tthhaann oorr eeqquuaall ttoo tthhee nnuummbbeerr ooff
  3188.      cchhaarraacctteerrss  ttoo  tthhee eenndd ooff tthhee lliinnee,, aallll ooff tthhee cchhaarraacc--
  3189.      tteerrss ffrroomm tthhee ccuurrrreenntt ccuurrssoorr ppoossiittiioonn ttoo tthhee eenndd ooff tthhee
  3190.      lliinnee aarree ddeelleetteedd..
  3191.  
  3192.      Line:    Unchanged.
  3193.      Column:  Unchanged  unless  the  last  character in the
  3194.               line is deleted and the cursor is not  already
  3195.               on  the  first character in the line, in which
  3196.               case it is set to the previous character.
  3197.      Options: None.
  3198.  
  3199. [[bbuuffffeerr]] [[ccoouunntt]] yy mmoottiioonn
  3200.      Copy (or "yank") the text region specified by the count
  3201.      aanndd mmoottiioonn, into a buffer.
  3202.  
  3203.      Line:    Unchanged,  unless the region covers more than
  3204.               a single line, in which case it is set to  the
  3205.               line where the region starts.
  3206.      Column:  Unchanged,  unless the region covers more than
  3207.               a single line, in which case it is set to  the
  3208.               character were the region starts.
  3209.      Options: None.
  3210.  
  3211. [[ccoouunntt11]] zz [[ccoouunntt22]] ttyyppee
  3212.      Redraw the screen with a window count2 lliinneess lloonngg,, wwiitthh
  3213.      lliinnee ccoouunntt11 placed as specified by the type  cchhaarraacctteerr..
  3214.      IIff  ccoouunntt11 is not specified, it defaults to the current
  3215.      line.  If count2 iiss nnoott ssppeecciiffiieedd,, iitt ddeeffaauullttss  ttoo  tthhee
  3216.      ccuurrrreenntt wwiinnddooww ssiizzee..
  3217.  
  3218.      TThhee ffoolllloowwiinngg ttyyppee characters may be used:
  3219.  
  3220.      +        If  count1 is specified, place the line count1
  3221.               at the top of the screen.  Otherwise,  display
  3222.               the screen after the current screen, similarly
  3223.               to the <<ccoonnttrrooll--FF>> command.
  3224.      <carriage-return>
  3225.               Place the  line  count1  at  the  top  of  the
  3226.               screen.
  3227.      .        Place  the  line  count1  in the center of the
  3228.               screen.
  3229.  
  3230.  
  3231.  
  3232.  
  3233.  
  3234.  
  3235.  
  3236.  
  3237.  
  3238.  
  3239. VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))                      UUSSDD::1133--5511
  3240.  
  3241.  
  3242.      -        Place the line count1 at  the  bottom  of  the
  3243.               screen.
  3244.      ^        If count1 is specified, place the line that is
  3245.               at the top of the screen when count1 is at the
  3246.               bottom  of  the  screen,  at the bottom of the
  3247.               screen, i.e. display  the  screen  before  the
  3248.               screen  before count1.  Otherwise, display the
  3249.               screen before the current screen, similarly to
  3250.               the <<ccoonnttrrooll--BB>> command.
  3251.  
  3252.      Line:    Set  to  count1 unless count1 is not specified
  3253.               and the type character was either "^" or  "+",
  3254.               in which case it is set to the line before the
  3255.               first line on the previous screen or the  line
  3256.               after  the  last  line on the previous screen,
  3257.               respectively.
  3258.      Column:  Set to the first  nonblank  character  in  the
  3259.               line.
  3260.      Options: None.
  3261.  
  3262. [[ccoouunntt]] {{
  3263.      Move backward count ppaarraaggrraapphhss..
  3264.  
  3265.      TThhee  {{  ccoommmmaanndd iiss aann aabbssoolluuttee mmoovveemmeenntt..  TThhee {{ ccoommmmaanndd
  3266.      mmaayy bbee uusseedd aass tthhee mmoottiioonn ccoommppoonneenntt ooff  ootthheerr  vvii  ccoomm--
  3267.      mmaannddss,,  iinn  wwhhiicchh ccaassee aannyy tteexxtt ccooppiieedd iinnttoo aa bbuuffffeerr iiss
  3268.      cchhaarraacctteerr oorriieenntteedd,, uunnlleessss tthhee  ssttaarrttiinngg  cchhaarraacctteerr  iiss
  3269.      tthhee  ffiirrsstt  cchhaarraacctteerr  oonn iittss lliinnee,, iinn wwhhiicchh ccaassee iitt iiss
  3270.      lliinnee oorriieenntteedd..
  3271.  
  3272.      Line:    Set to the line containing  the  beginning  of
  3273.               the previous paragraph.
  3274.      Column:  Set  to  the  first  nonblank character in the
  3275.               line.
  3276.      Options: Affected by the ppaarraaggrraapphh option.
  3277.  
  3278. [[ccoouunntt]] ||
  3279.      Move to a specific _c_o_l_u_m_n position on the current line.
  3280.  
  3281.      The  ||  command  may be used as the motion component of
  3282.      other vvii commands, in which case any text copied into a
  3283.      buffer  is  character  oriented.  It is an error to use
  3284.      the || command as a motion component and for the  cursor
  3285.      not to move.
  3286.  
  3287.      Line:    Unchanged.
  3288.      Column:  Set  to  the  character  occupying  the column
  3289.               position identified by count, if the  position
  3290.               exists  in  the line.  If the column length of
  3291.               the current line is less than count, the  cur-
  3292.               sor  is  moved  to  the  last character in the
  3293.               line.
  3294.  
  3295.  
  3296.  
  3297.  
  3298.  
  3299.  
  3300.  
  3301.  
  3302.  
  3303.  
  3304.  
  3305. UUSSDD::1133--5522                      VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))
  3306.  
  3307.  
  3308.      Options: None.
  3309.  
  3310. [[ccoouunntt]] }}
  3311.      Move forward count ppaarraaggrraapphhss..
  3312.  
  3313.      TThhee }} ccoommmmaanndd iiss aann aabbssoolluuttee mmoovveemmeenntt..  TThhee  }}  ccoommmmaanndd
  3314.      mmaayy  bbee  uusseedd  aass tthhee mmoottiioonn ccoommppoonneenntt ooff ootthheerr vvii ccoomm--
  3315.      mmaannddss,, iinn wwhhiicchh ccaassee aannyy tteexxtt ccooppiieedd iinnttoo aa  bbuuffffeerr  iiss
  3316.      cchhaarraacctteerr oorriieenntteedd,, uunnlleessss tthhee ssttaarrttiinngg cchhaarraacctteerr iiss aatt
  3317.      oorr bbeeffoorree aannyy nnoonnbbllaannkk cchhaarraacctteerrss iinn iittss lliinnee,, iinn wwhhiicchh
  3318.      ccaassee iitt iiss lliinnee oorriieenntteedd..
  3319.  
  3320.      Line:    Set  to  the  line containing the beginning of
  3321.               the next paragraph.
  3322.      Column:  Set to the first  nonblank  character  in  the
  3323.               line.
  3324.      Options: Affected by the ppaarraaggrraapphh option.
  3325.  
  3326. [[ccoouunntt]] ~~
  3327.      Reverse  the case of the next count cchhaarraacctteerr((ss))..  TThhiiss
  3328.      iiss tthhee hhiissttoorriicc sseemmaannttiicc ffoorr tthhee ~~ ccoommmmaanndd  aanndd  iitt  iiss
  3329.      oonnllyy iinn eeffffeecctt iiff tthhee ttiillddeeoopp ooppttiioonn iiss nnoott sseett..
  3330.  
  3331.      LLoowweerrccaassee  aallpphhaabbeettiicc  cchhaarraacctteerrss aarree cchhaannggeedd ttoo uuppppeerr--
  3332.      ccaassee,, aanndd uuppppeerrccaassee cchhaarraacctteerrss aarree  cchhaannggeedd  ttoo  lloowweerr--
  3333.      ccaassee..  NNoo ootthheerr cchhaarraacctteerrss aarree aaffffeecctteedd..
  3334.  
  3335.      HHiissttoorriiccaallllyy,,  tthhee ~~ ccoommmmaanndd ddiidd nnoott ttaakkee aann aassssoocciiaatteedd
  3336.      ccoouunntt,, nnoorr ddiidd iitt mmoovvee ppaasstt  tthhee  eenndd  ooff  tthhee  ccuurrrreenntt
  3337.      lliinnee..   AAss iitt hhaadd nnoo aassssoocciiaatteedd mmoottiioonn iitt wwaass ddiiffffiiccuulltt
  3338.      ttoo cchhaannggee tthhee ccaassee ooff llaarrggee bblloocckkss ooff tteexxtt..  IInn nnvvii,, iiff
  3339.      tthhee  ccuurrssoorr  iiss  oonn  tthhee  llaasstt cchhaarraacctteerr ooff aa lliinnee,, aanndd
  3340.      tthheerree aarree mmoorree lliinneess iinn tthhee ffiillee,, tthhee ccuurrssoorr  mmoovveess  ttoo
  3341.      tthhee nneexxtt lliinnee..
  3342.  
  3343.      IItt  iiss  nnoott aann eerrrroorr ttoo ssppeecciiffyy aa ccoouunntt llaarrggeerr tthhaann tthhee
  3344.      nnuummbbeerr ooff cchhaarraacctteerrss bbeettwweeeenn tthhee ccuurrssoorr aanndd tthhee eenndd  ooff
  3345.      tthhee ffiillee..
  3346.  
  3347.      Line:    Set  to  the line of the character after count
  3348.               cchhaarraacctteerrss,, oorr,, eenndd ooff ffiillee..
  3349.      Column:  Set to the character after  count  cchhaarraacctteerrss,,
  3350.               oorr,, eenndd--ooff--ffiillee..
  3351.      Options: Affected by the ttiillddeeoopp option.
  3352.  
  3353. [[ccoouunntt]] ~~ mmoottiioonn
  3354.      Reverse  the  case  of  the characters in a text region
  3355.      specified by the count aanndd mmoottiioonn.  Only in  effect  if
  3356.      the ttiillddeeoopp option is set.
  3357.  
  3358.      Lowercase  characters  are  changed  to  uppercase, and
  3359.      uppercase characters  are  changed  to  lowercase.   No
  3360.      other characters are affected.
  3361.  
  3362.  
  3363.  
  3364.  
  3365.  
  3366.  
  3367.  
  3368.  
  3369.  
  3370.  
  3371. VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))                      UUSSDD::1133--5533
  3372.  
  3373.  
  3374.      Line:    Set  to  the  line  of the character after the
  3375.               last character in the region.
  3376.      Column:  Set to the character after the last  character
  3377.               in the region.
  3378.      Options: Affected by the ttiillddeeoopp option.
  3379.  
  3380. <<iinntteerrrruupptt>>
  3381.      Interrupt  the  current  operation.  Many of the poten-
  3382.      tially long-running  vvii  commands  may  be  interrupted
  3383.      using  the  terminal interrupt character.  These opera-
  3384.      tions include searches, file reading and writing,  fil-
  3385.      ter operations and map character expansion.  Interrupts
  3386.      are also enabled when running commands outside of vvii.
  3387.  
  3388.      If the <interrupt> cchhaarraacctteerr iiss uusseedd ttoo iinntteerrrruupptt wwhhiillee
  3389.      eenntteerriinngg  aann  eexx  ccoommmmaanndd,,  tthhee ccoommmmaanndd iiss aabboorrtteedd,, tthhee
  3390.      ccuurrssoorr rreettuurrnnss ttoo iittss pprreevviioouuss ppoossiittiioonn,, aanndd vvii rreemmaaiinnss
  3391.      iinn ccoommmmaanndd mmooddee..
  3392.  
  3393.      GGeenneerraallllyy,,  iiff  tthhee  <<iinntteerrrruupptt>>  cchhaarraacctteerr  iiss uusseedd ttoo
  3394.      iinntteerrrruupptt aannyy ooppeerraattiioonn,, aannyy cchhaannggeess  mmaaddee  bbeeffoorree  tthhee
  3395.      iinntteerrrruupptt aarree lleefftt iinn ppllaaccee..
  3396.  
  3397.      Line:    Dependent  on the operation being interrupted.
  3398.      Column:  Dependent on the operation being  interrupted.
  3399.      Options: None.
  3400.  
  3401.      1144..  VVii TTeexxtt IInnppuutt CCoommmmaannddss
  3402.  
  3403.           The   following  section  describes  the  commands
  3404.      available in the text input mode of the vvii editor.
  3405.  
  3406.           Historically, vvii  implementations  only  permitted
  3407.      the  characters  inserted  on  the  current  line to be
  3408.      erased.  In addition, only the <control-D> eerraassee  cchhaarr--
  3409.      aacctteerr  aanndd  tthhee ""00<<ccoonnttrrooll--DD>>" and "^<control-D>"" eerraassee
  3410.      ssttrriinnggss ccoouulldd eerraassee aauuttooiinnddeenntt cchhaarraacctteerrss..  ((AAuuttooiinnddeenntt
  3411.      cchhaarraacctteerrss  iinncclluuddee  bbootthh tthhee cchhaarraacctteerrss iinnsseerrtteedd aauuttoo--
  3412.      mmaattiiccaallllyy aatt tthhee bbeeggiinnnniinngg ooff aann iinnppuutt lliinnee aass wweellll  aass
  3413.      cchhaarraacctteerrss  iinnsseerrtteedd  uussiinngg  tthhee  <<ccoonnttrrooll--TT>> command.)
  3414.      This implementation permits erasure  to  continue  past
  3415.      the  beginning  of  the current line, and back to where
  3416.      text input mode was entered.  In  addition,  autoindent
  3417.      characters may be erased using the standard erase char-
  3418.      acters.  For the line and word erase characters, reach-
  3419.      ing  the autoindent characters forms a "soft" boundary,
  3420.      denoting the end of the current  word  or  line  erase.
  3421.      Repeating  the  word  or  line erase key will erase the
  3422.      autoindent characters.
  3423.  
  3424.           Historically, vvii always used <control-H> aanndd <<ccoonn--
  3425.      ttrrooll--WW>> as character and word erase characters, respec-
  3426.      tively, regardless of the  current  terminal  settings.
  3427.  
  3428.  
  3429.  
  3430.  
  3431.  
  3432.  
  3433.  
  3434.  
  3435.  
  3436.  
  3437. UUSSDD::1133--5544                      VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))
  3438.  
  3439.  
  3440.      This  implementation  accepts, in addition to these two
  3441.      characters, the current terminal characters  for  those
  3442.      operations.
  3443.  
  3444.      <<nnuull>>
  3445.           If  the  first  character of the input is a <nul>,,
  3446.           tthhee  pprreevviioouuss  iinnppuutt  iiss  rreeppllaayyeedd,,  aass  iiff   jjuusstt
  3447.           eenntteerreedd..
  3448.  
  3449.      <<ccoonnttrrooll--DD>>
  3450.           If  the  previous  character  on  the  line was an
  3451.           autoindent character, erase characters to move the
  3452.           cursor  back  to  the column immediately after the
  3453.           previous (1-based) column which is a  multiple  of
  3454.           the  sshhiiffttwwiiddtthh  edit  option.  This may result in
  3455.           any number of <tab> aanndd <<ssppaaccee>> characters preced-
  3456.           ing the cursor being changed.
  3457.  
  3458.           Otherwise, if the aauuttooiinnddeenntt option is set and the
  3459.           user is entering the first character in the  line,
  3460.           <control-D>  iiss  iiggnnoorreedd..   OOtthheerrwwiissee,,  aa  lliitteerraall
  3461.           <<ccoonnttrrooll--DD>> character is entered.
  3462.  
  3463.      ^^<<ccoonnttrrooll--DD>>
  3464.           If the previous  character  on  the  line  was  an
  3465.           autoindent  character, erase all of the autoindent
  3466.           characters on the line.  In addition, the  autoin-
  3467.           dent level is reset to 0.
  3468.  
  3469.      00<<ccoonnttrrooll--DD>>
  3470.           If  the  previous  character  on  the  line was an
  3471.           autoindent character, erase all of the  autoindent
  3472.           characters  on  the line.  The autoindent level is
  3473.           not altered.
  3474.  
  3475.      <<ccoonnttrrooll--TT>>
  3476.           Insert sufficient <tab> aanndd <<ssppaaccee>> characters  to
  3477.           move  the cursor forward to the column immediately
  3478.           after the next (1-based) column which is a  multi-
  3479.           ple  of  the  sshhiiffttwwiiddtthh  edit  option.   This may
  3480.           result in any number of <tab> aanndd <<ssppaaccee>>  charac-
  3481.           ters preceding the cursor being changed.
  3482.  
  3483.           Historically,  vvii  did  not permit the <control-T>
  3484.           ccoommmmaanndd ttoo bbee uusseedd uunnlleessss tthhee ccuurrssoorr  wwaass  aatt  tthhee
  3485.           ffiirrsstt ccoolluummnn ooff aa nneeww lliinnee oorr iitt wwaass pprreecceeddeedd oonnllyy
  3486.           bbyy aauuttooiinnddeenntt cchhaarraacctteerrss..  NNvvii ppeerrmmiittss  iitt  ttoo  bbee
  3487.           uusseedd aatt aannyy ttiimmee dduurriinngg iinnsseerrtt mmooddee..
  3488.  
  3489.      <<eerraassee>>
  3490.      <<ccoonnttrrooll--HH>>
  3491.           Erase the last character.
  3492.  
  3493.  
  3494.  
  3495.  
  3496.  
  3497.  
  3498.  
  3499.  
  3500.  
  3501.  
  3502.  
  3503. VVii//EExx RReeffeerreennccee ((VVii CCoommmmaannddss))                      UUSSDD::1133--5555
  3504.  
  3505.  
  3506.      <<lliitteerraall--nneexxtt>>
  3507.           Quote the next character.  The next character will
  3508.           not be mapped (see the mmaapp command for more infor-
  3509.           mation)  or  interpreted specially.  A carat ("^""))
  3510.           cchhaarraacctteerr  wwiillll  bbee  ddiissppllaayyeedd  iimmmmeeddiiaatteellyy  aass  aa
  3511.           ppllaacceehhoollddeerr,,  bbuutt  wwiillll  bbee  rreeppllaacceedd  bbyy tthhee nneexxtt
  3512.           cchhaarraacctteerr..
  3513.  
  3514.      <<eessccaappee>>
  3515.           If on the colon command line, and the  ffiilleecc  edit
  3516.           option  is  set,  behave  as  described  for  that
  3517.           option.  Otherwise, if on the colon command  line,
  3518.           execute  the  command.   Otherwise,  if not on the
  3519.           colon command line, resolve all  text  input  into
  3520.           the file, and return to command mode.
  3521.  
  3522.      <<lliinnee eerraassee>>
  3523.           Erase the current line.
  3524.  
  3525.      <<ccoonnttrrooll--WW>>
  3526.      <<wwoorrdd eerraassee>>
  3527.           Erase  the  last  word.  The definition of word is
  3528.           dependent on the aallttwweerraassee and ttttyywweerraassee  options.
  3529.  
  3530.      <<ccoonnttrrooll--XX>>[[00--99AA--FFaa--ff]]++
  3531.           Insert  a character with the specified hexadecimal
  3532.           value into the text.  The value  is  delimited  by
  3533.           any  non-hexadecimal character or the input of the
  3534.           maximum number of characters that  can  be  trans-
  3535.           lated into a single character value.
  3536.  
  3537.      <<iinntteerrrruupptt>>
  3538.           Interrupt  text  input  mode, returning to command
  3539.           mode.  If the <interrupt>  cchhaarraacctteerr  iiss  uusseedd  ttoo
  3540.           iinntteerrrruupptt  iinnsseerrttiinngg  tteexxtt iinnttoo tthhee ffiillee,, iitt iiss aass
  3541.           iiff tthhee <<eessccaappee>> character was used; all text input
  3542.           up  to the interruption is resolved into the file.
  3543.  
  3544.      1155..  EExx AAddddrreessssiinngg
  3545.  
  3546.           Addressing in eexx (and when eexx  commands  are  exe-
  3547.      cuted  from  vvii)  relates to the current line.  In gen-
  3548.      eral, the current line is the last line affected  by  a
  3549.      command.   The exact effect on the current line is dis-
  3550.      cussed under the description of each command.  When the
  3551.      file contains no lines, the current line is zero.
  3552.  
  3553.           Addresses  are  constructed  by one or more of the
  3554.      following methods:
  3555.  
  3556.       (1)   The address "."  refers to the current line.
  3557.  
  3558.  
  3559.  
  3560.  
  3561.  
  3562.  
  3563.  
  3564.  
  3565.  
  3566.  
  3567.  
  3568.  
  3569. UUSSDD::1133--5566                                    VVii//EExx RReeffeerreennccee
  3570.  
  3571.  
  3572.       (2)   The address "$" refers to the last line  of  the
  3573.             file.
  3574.  
  3575.       (3)   The  address  "N", where N is a positive number,
  3576.             refers to the N-th line of the file.
  3577.  
  3578.       (4)   The  address  "'<character>"  or  "`<character>"
  3579.             refers to the line marked with the name <charac-
  3580.             ter>.  (See the kk or mm commands for more  infor-
  3581.             mation on how to mark lines.)
  3582.  
  3583.       (5)   A  regular  expression  (RE) enclosed by slashes
  3584.             ("/") is an address, and it refers to the  first
  3585.             line  found  by  searching forward from the line
  3586.             _a_f_t_e_r the current line toward  the  end  of  the
  3587.             file,  and stopping at the first line containing
  3588.             a string matching the RE.  (The  trailing  slash
  3589.             can  be omitted at the end of the command line.)
  3590.  
  3591.             If no RE is specified, i.e. the pattern is "//_"_,
  3592.             _t_h_e  _l_a_s_t  _R_E _u_s_e_d _i_n _a_n_y _c_o_m_m_a_n_d _i_s _u_s_e_d _i_n _t_h_e
  3593.             _s_e_a_r_c_h_.
  3594.  
  3595.             _I_f _t_h_e eexxtteennddeedd _o_p_t_i_o_n _i_s _s_e_t_, _t_h_e _R_E _i_s _h_a_n_d_l_e_d
  3596.             _a_s _a_n _e_x_t_e_n_d_e_d _R_E_, _n_o_t _a _b_a_s_i_c _R_E_.  _I_f _t_h_e wwrraapp--
  3597.             ssccaann _o_p_t_i_o_n _i_s _s_e_t_, _t_h_e _s_e_a_r_c_h _w_r_a_p_s  _a_r_o_u_n_d  _t_o
  3598.             _t_h_e  _b_e_g_i_n_n_i_n_g  _o_f  _t_h_e _f_i_l_e _a_n_d _c_o_n_t_i_n_u_e_s _u_p _t_o
  3599.             _a_n_d _i_n_c_l_u_d_i_n_g _t_h_e  _c_u_r_r_e_n_t  _l_i_n_e_,  _s_o  _t_h_a_t  _t_h_e
  3600.             _e_n_t_i_r_e _f_i_l_e _i_s _s_e_a_r_c_h_e_d_.
  3601.  
  3602.             _T_h_e  _f_o_r_m _"_\_/"" iiss aacccceepptteedd ffoorr hhiissttoorriicc rreeaassoonnss,,
  3603.             aanndd iiss iiddeennttiiccaall ttoo ""////_"_.
  3604.  
  3605.       (6)   An  RE  enclosed   in   question   marks   ("?_"_)
  3606.             _a_d_d_r_e_s_s_e_s  _t_h_e  _f_i_r_s_t  _l_i_n_e  _f_o_u_n_d  _b_y _s_e_a_r_c_h_i_n_g
  3607.             _b_a_c_k_w_a_r_d _f_r_o_m _t_h_e  _l_i_n_e  _p_r_e_c_e_d_i_n_g  _t_h_e  _c_u_r_r_e_n_t
  3608.             _l_i_n_e_, _t_o_w_a_r_d _t_h_e _b_e_g_i_n_n_i_n_g _o_f _t_h_e _f_i_l_e _a_n_d _s_t_o_p_-
  3609.             _p_i_n_g _a_t  _t_h_e  _f_i_r_s_t  _l_i_n_e  _c_o_n_t_a_i_n_i_n_g  _a  _s_t_r_i_n_g
  3610.             _m_a_t_c_h_i_n_g  _t_h_e  _R_E_.   _(_T_h_e _t_r_a_i_l_i_n_g _q_u_e_s_t_i_o_n _m_a_r_k
  3611.             _c_a_n _b_e _o_m_i_t_t_e_d _a_t _t_h_e _e_n_d _o_f _a _c_o_m_m_a_n_d _l_i_n_e_._)
  3612.  
  3613.             _I_f _n_o _R_E _i_s _s_p_e_c_i_f_i_e_d_, _i_._e_. _t_h_e _p_a_t_t_e_r_n _i_s _"_?_?_"_,
  3614.             _t_h_e  _l_a_s_t  _R_E _u_s_e_d _i_n _a_n_y _c_o_m_m_a_n_d _i_s _u_s_e_d _i_n _t_h_e
  3615.             _s_e_a_r_c_h_.
  3616.  
  3617.             _I_f _t_h_e eexxtteennddeedd _o_p_t_i_o_n _i_s _s_e_t_, _t_h_e _R_E _i_s _h_a_n_d_l_e_d
  3618.             _a_s _a_n _e_x_t_e_n_d_e_d _R_E_, _n_o_t _a _b_a_s_i_c _R_E_.  _I_f _t_h_e wwrraapp--
  3619.             ssccaann _o_p_t_i_o_n _i_s _s_e_t_,  _t_h_e  _s_e_a_r_c_h   _w_r_a_p_s  _a_r_o_u_n_d
  3620.             _f_r_o_m _t_h_e _b_e_g_i_n_n_i_n_g _o_f _t_h_e _f_i_l_e _t_o _t_h_e _e_n_d _o_f _t_h_e
  3621.             _f_i_l_e _a_n_d _c_o_n_t_i_n_u_e_s _u_p _t_o _a_n_d _i_n_c_l_u_d_i_n_g _t_h_e  _c_u_r_-
  3622.             _r_e_n_t  _l_i_n_e_, _s_o _t_h_a_t _t_h_e _e_n_t_i_r_e _f_i_l_e _i_s _s_e_a_r_c_h_e_d_.
  3623.  
  3624.             _T_h_e _f_o_r_m _"_\_?""  iiss aacccceepptteedd ffoorr hhiissttoorriicc rreeaassoonnss,,
  3625.  
  3626.  
  3627.  
  3628.  
  3629.  
  3630.  
  3631.  
  3632.  
  3633.  
  3634.  
  3635. VVii//EExx RReeffeerreennccee                                    UUSSDD::1133--5577
  3636.  
  3637.  
  3638.             aanndd iiss iiddeennttiiccaall ttoo ""????_"_.
  3639.  
  3640.       (7)   An  address  followed  by a plus sign ("+_"_) _o_r _a
  3641.             _m_i_n_u_s _s_i_g_n _(_"_-") followed by a number is an off-
  3642.             set  address  and refers to the address plus (or
  3643.             minus) the indicated number of  lines.   If  the
  3644.             address  is omitted, the addition or subtraction
  3645.             is done with respect to the current line.
  3646.  
  3647.       (8)   An address of "+" or "-" followed by a number is
  3648.             an  offset  from the current line.  For example,
  3649.             "-5" is the same as ".-5".
  3650.  
  3651.       (9)   An address ending with "+" or "-" has 1 added to
  3652.             or  subtracted  from  the address, respectively.
  3653.             As a consequence of this rule and of the  previ-
  3654.             ous  rule,  the  address  "-" refers to the line
  3655.             preceding the current line.  Moreover,  trailing
  3656.             "+" and "-" characters have a cumulative effect.
  3657.             For example, "++-++" refers to the current  line
  3658.             plus 3.
  3659.  
  3660.       (10)  A  percent  sign  ("%")  is  equivalent  to  the
  3661.             address range "1,$".
  3662.  
  3663.           EExx commands require zero, one, or  two  addresses.
  3664.      It is an error to specify an address to a command which
  3665.      requires zero addresses.
  3666.  
  3667.           If the user provides more than the expected number
  3668.      of  addresses  to  any  eexx command, the first addresses
  3669.      specified are discarded.  For  example,  "1,2,3,5""pprriinntt
  3670.      pprriinnttss  lliinneess  33  tthhrroouugghh  55,, bbeeccaauussee tthhee pprriinntt ccoommmmaanndd
  3671.      oonnllyy ttaakkeess ttwwoo aaddddrreesssseess..
  3672.  
  3673.           The addresses in a range are separated  from  each
  3674.      other  by  a  comma (","")) oorr aa sseemmiiccoolloonn (("";;").  In the
  3675.      latter case, the current line  (".""))   iiss  sseett  ttoo  tthhee
  3676.      ffiirrsstt aaddddrreessss,, aanndd oonnllyy tthheenn iiss tthhee sseeccoonndd aaddddrreessss ccaall--
  3677.      ccuullaatteedd..  TThhiiss ffeeaattuurree ccaann bbee  uusseedd  ttoo  ddeetteerrmmiinnee  tthhee
  3678.      ssttaarrttiinngg  lliinnee  ffoorr  ffoorrwwaarrdd aanndd bbaacckkwwaarrdd sseeaarrcchheess ((sseeee
  3679.      rruulleess ((55)) aanndd ((66)) aabboovvee))..  TThhee sseeccoonndd  aaddddrreessss  ooff  aannyy
  3680.      ttwwoo--aaddddrreessss  sseeqquueennccee  ccoorrrreessppoonnddss  ttoo aa lliinnee tthhaatt ffooll--
  3681.      lloowwss,, iinn tthhee ffiillee,, tthhee lliinnee ccoorrrreessppoonnddiinngg ttoo tthhee  ffiirrsstt
  3682.      aaddddrreessss..   TThhee ffiirrsstt aaddddrreessss mmuusstt bbee lleessss tthhaann oorr eeqquuaall
  3683.      ttoo tthhee sseeccoonndd  aaddddrreessss..   TThhee  ffiirrsstt  aaddddrreessss  mmuusstt  bbee
  3684.      ggrreeaatteerr  tthhaann  oorr  eeqquuaall ttoo tthhee ffiirrsstt lliinnee ooff tthhee ffiillee,,
  3685.      aanndd tthhee llaasstt aaddddrreessss mmuusstt bbee lleessss tthhaann oorr eeqquuaall ttoo  tthhee
  3686.      llaasstt lliinnee ooff tthhee ffiillee..
  3687.  
  3688.  
  3689.  
  3690.  
  3691.  
  3692.  
  3693.  
  3694.  
  3695.  
  3696.  
  3697.  
  3698.  
  3699.  
  3700.  
  3701. UUSSDD::1133--5588                      VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))
  3702.  
  3703.  
  3704.      1166..  EExx DDeessccrriippttiioonn
  3705.  
  3706.           The  following  words have special meanings for eexx
  3707.      commands.
  3708.  
  3709.      <<eenndd--ooff--ffiillee>>
  3710.           The end-of-file character is used  to  scroll  the
  3711.           screen  in  the eexx editor.  This character is nor-
  3712.           mally <control-D>..  HHoowweevveerr,, wwhhaatteevveerr cchhaarraacctteerr iiss
  3713.           sseett  ffoorr tthhee ccuurrrreenntt tteerrmmiinnaall iiss ssuuppppoorrtteedd aass wweellll
  3714.           aass <<ccoonnttrrooll--DD>>.
  3715.  
  3716.      lliinnee
  3717.           A single-line address, given in any of  the  forms
  3718.           described in the section entitled "EExx AAddddrreessssiinngg".
  3719.           The default for line iiss tthhee ccuurrrreenntt lliinnee..
  3720.  
  3721.      rraannggee
  3722.           A line, or a pair of line addresses, separated  by
  3723.           a  comma  or semicolon.  (See the section entitled
  3724.           "EExx  AAddddrreessssiinngg"  for  more   information.)    The
  3725.           default  for  range is the current line _o_n_l_y, i.e.
  3726.           ".,._"_.  _A _p_e_r_c_e_n_t _s_i_g_n _(_"_%") stands for the  range
  3727.           "1,$_"_.  _T_h_e _s_t_a_r_t_i_n_g _a_d_d_r_e_s_s _m_u_s_t _b_e _l_e_s_s _t_h_a_n_, _o_r
  3728.           _e_q_u_a_l _t_o_, _t_h_e _e_n_d_i_n_g _a_d_d_r_e_s_s_.
  3729.  
  3730.      ccoouunntt
  3731.           A positive integer, specifying the number of lines
  3732.           to  be  affected by the command; the default is 1.
  3733.           Generally, a count past  the  end-of-file  may  be
  3734.           specified,  e.g. the command "p 3000"" iinn aa 1100 lliinnee
  3735.           ffiillee iiss aacccceeppttaabbllee,, aanndd wwiillll pprriinntt ffrroomm  tthhee  ccuurr--
  3736.           rreenntt lliinnee tthhrroouugghh tthhee llaasstt lliinnee iinn tthhee ffiillee..
  3737.  
  3738.      ffllaaggss
  3739.           One  or  more of the characters "#", "p", and "l".
  3740.           When a command that accepts these flags completes,
  3741.           the addressed line(s) are written out as if by the
  3742.           corresponding ##, ll or pp  commands.   In  addition,
  3743.           any  number of "+"" oorr ""--" characters can be speci-
  3744.           fied before, after, or during the flags, in  which
  3745.           case  the  line written is not necessarily the one
  3746.           affected by  the  command,  but  rather  the  line
  3747.           addressed  by  the  offset address specified.  The
  3748.           default for flags iiss nnoonnee..
  3749.  
  3750.      ffiillee
  3751.           A pattern used to derive a pathname;  the  default
  3752.           is  the current file.  File names are subjected to
  3753.           normal _s_h(1) word expansions.
  3754.  
  3755.           Anywhere a file name is specified, it is also pos-
  3756.      sible  to  use the special string "/tmp".  This will be
  3757.  
  3758.  
  3759.  
  3760.  
  3761.  
  3762.  
  3763.  
  3764.  
  3765.  
  3766.  
  3767. VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))                      UUSSDD::1133--5599
  3768.  
  3769.  
  3770.      replaced with a temporary file name which can  be  used
  3771.      for temporary work, e.g.  ":e /tmp" creates and edits a
  3772.      new file.
  3773.  
  3774.           If both a count and a range are specified for com-
  3775.      mands  that  use either, the starting line for the com-
  3776.      mand is the _l_a_s_t  line  addressed  by  the  range,  and
  3777.      count_-  _s_u_b_s_e_q_u_e_n_t  _l_i_n_e_s  _a_r_e _a_f_f_e_c_t_e_d _b_y _t_h_e _c_o_m_m_a_n_d_,
  3778.      _e_._g_. _t_h_e _c_o_m_m_a_n_d _"_2_,_3_p_4" prints out lines 3, 4,  5  and
  3779.      6.
  3780.  
  3781.           When  only  a  line or range is specified, with no
  3782.      command, the implied command is either a  lliisstt,  nnuummbbeerr
  3783.      or  pprriinntt command.  The command used is the most recent
  3784.      of the three commands to have been used (including  any
  3785.      use  as  a  flag).  If none of these commands have been
  3786.      used before, the pprriinntt command is the implied  command.
  3787.      When  no  range  or  count is specified and the command
  3788.      line is a blank line, the current line  is  incremented
  3789.      by 1 and then the current line is displayed.
  3790.  
  3791.           Zero  or more whitespace characters may precede or
  3792.      follow the addresses, count, flags,  or  command  name.
  3793.      Any  object  following  a command name (such as buffer,
  3794.      file, etc.), that begins with an alphabetic  character,
  3795.      should  be  separated from the command name by at least
  3796.      one whitespace character.
  3797.  
  3798.           Any character,  including  <carriage-return>,  "%"
  3799.      and  "#"  retain their literal value when preceded by a
  3800.      backslash.
  3801.  
  3802.      1177..  EExx CCoommmmaannddss
  3803.  
  3804.           The  following  section  describes  the   commands
  3805.      available  in  the eexx editor.  In each entry below, the
  3806.      tag line is a usage synopsis for the command.
  3807.  
  3808.           Each command can be entered  as  the  abbreviation
  3809.      (those  characters in the synopsis command word preced-
  3810.      ing the "[" character), the full command  (all  charac-
  3811.      ters  shown  for the command word, omitting the "[" and
  3812.      "]" characters), or any leading subset of the full com-
  3813.      mand  down  to the abbreviation.  For example, the args
  3814.      command (shown as "ar[gs]"  in  the  synopsis)  can  be
  3815.      entered as "ar", "arg" or "args".
  3816.  
  3817.           Each eexx command described below notes the new cur-
  3818.      rent line after it is executed, as well as any  options
  3819.      that affect the command.
  3820.  
  3821.      ""
  3822.           A  comment.   Command  lines  beginning  with  the
  3823.  
  3824.  
  3825.  
  3826.  
  3827.  
  3828.  
  3829.  
  3830.  
  3831.  
  3832.  
  3833. UUSSDD::1133--6600                      VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))
  3834.  
  3835.  
  3836.           double-quote character (""""))  aarree  iiggnnoorreedd..   TThhiiss
  3837.           ppeerrmmiittss  ccoommmmeennttss  iinn  eeddiittoorr  ssccrriippttss aanndd ssttaarrttuupp
  3838.           ffiilleess..
  3839.  
  3840.      <<ccoonnttrrooll--DD>>
  3841.  
  3842.      <<eenndd--ooff--ffiillee>>
  3843.           Scroll the screen.  Write the next N lines,  where
  3844.           N  is the value of the ssccrroollll option.  The command
  3845.           is the end-of-file terminal character,  which  may
  3846.           be  different  on different terminals.  Tradition-
  3847.           ally, it is the <control-D> kkeeyy..
  3848.  
  3849.           HHiissttoorriiccaallllyy,, tthhee eeooff ccoommmmaanndd iiggnnoorreedd aannyy  pprreecceedd--
  3850.           iinngg  ccoouunntt,,  aanndd  tthhee  <<eenndd--ooff--ffiillee>> cchhaarraacctteerr wwaass
  3851.           iiggnnoorreedd uunnlleessss iitt wwaass eenntteerreedd aass tthhee ffiirrsstt cchhaarraacc--
  3852.           tteerr ooff tthhee ccoommmmaanndd..  TThhiiss iimmpplleemmeennttaattiioonn ttrreeaattss iitt
  3853.           aass aa ccoommmmaanndd _o_n_l_y iiff eenntteerreedd aass tthhee ffiirrsstt  cchhaarraacc--
  3854.           tteerr  ooff  tthhee ccoommmmaanndd lliinnee,, aanndd ootthheerrwwiissee ttrreeaattss iitt
  3855.           aass aannyy ootthheerr cchhaarraacctteerr..
  3856.  
  3857.           Line:    Set to the last line written.
  3858.           Options: Affected by the ssccrroollll option.
  3859.  
  3860.      !! aarrgguummeenntt((ss))
  3861.      [[rraannggee]]!! aarrgguummeenntt((ss))
  3862.           Execute a shell command, or filter lines through a
  3863.           shell command.  In the first synopsis, the remain-
  3864.           der of the line after the "!""  cchhaarraacctteerr iiss ppaasssseedd
  3865.           ttoo  tthhee  pprrooggrraamm  nnaammeedd  bbyy tthhee sshheellll ooppttiioonn,, aass aa
  3866.           ssiinnggllee aarrgguummeenntt..
  3867.  
  3868.           WWiitthhiinn tthhee rreesstt ooff  tthhee  lliinnee,,  ""%%""  aanndd  ""##""  aarree
  3869.           eexxppaannddeedd iinnttoo tthhee ccuurrrreenntt aanndd aalltteerrnnaattee ppaatthhnnaammeess,,
  3870.           rreessppeeccttiivveellyy..  TThhee cchhaarraacctteerr ""!!""  iiss eexxppaannddeedd wwiitthh
  3871.           tthhee  ccoommmmaanndd  tteexxtt  ooff  tthhee  pprreevviioouuss  !!  ccoommmmaanndd..
  3872.           ((TThheerreeffoorree,, tthhee ccoommmmaanndd !!!!  rreeppeeaattss tthhee pprreevviioouuss !!
  3873.           ccoommmmaanndd..))   TThhee  ssppeecciiaall mmeeaanniinnggss ooff ""%%"",, ""##"",, aanndd
  3874.           ""!!""  ccaann bbee oovveerrrriiddddeenn bbyy  eessccaappiinngg  tthheemm  wwiitthh  aa
  3875.           bbaacckkssllaasshh..   IIff  nnoo !!  oorr ::!!  ccoommmmaanndd hhaass yyeett bbeeeenn
  3876.           eexxeeccuutteedd,, iitt iiss aann eerrrroorr ttoo uussee aann  uunneessccaappeedd  ""!!""
  3877.           cchhaarraacctteerr..   TThhee  !!   ccoommmmaanndd  ddooeess  _n_o_t  ddoo sshheellll
  3878.           eexxppaannssiioonn oonn tthhee ssttrriinnggss  pprroovviiddeedd  aass  aarrgguummeennttss..
  3879.           IIff  aannyy ooff tthhee aabboovvee eexxppaannssiioonnss cchhaannggee tthhee ccoommmmaanndd
  3880.           tthhee uusseerr eenntteerreedd,, tthhee ccoommmmaanndd  iiss  rreeddiissppllaayyeedd  aatt
  3881.           tthhee bboottttoomm ooff tthhee ssccrreeeenn..
  3882.  
  3883.           EExx  tthheenn  eexxeeccuutteess  tthhee pprrooggrraamm nnaammeedd bbyy tthhee sshheellll
  3884.           ooppttiioonn,, wwiitthh aa --cc ffllaagg ffoolllloowweedd bbyy  tthhee  aarrgguummeennttss
  3885.           ((wwhhiicchh aarree bbuunnddlleedd iinnttoo aa ssiinnggllee aarrgguummeenntt))..
  3886.  
  3887.           TThhee !!  ccoommmmaanndd iiss ppeerrmmiitttteedd iinn aann eemmppttyy ffiillee..
  3888.  
  3889.  
  3890.  
  3891.  
  3892.  
  3893.  
  3894.  
  3895.  
  3896.  
  3897.  
  3898.  
  3899. VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))                      UUSSDD::1133--6611
  3900.  
  3901.  
  3902.           IIff  tthhee  ffiillee  hhaass bbeeeenn mmooddiiffiieedd ssiinnccee iitt wwaass llaasstt
  3903.           ccoommpplleetteellyy wwrriitttteenn,, tthhee ccoommmmaanndd wwiillll wwaarrnn yyoouu..
  3904.  
  3905.           AA ssiinnggllee ""!!""  cchhaarraacctteerr iiss ddiissppllaayyeedd wwhheenn tthhee ccoomm--
  3906.           mmaanndd ccoommpplleetteess..
  3907.  
  3908.           IInn  tthhee sseeccoonndd ffoorrmm ooff tthhee !!  ccoommmmaanndd,, tthhee rreemmaaiinn--
  3909.           ddeerr ooff tthhee lliinnee aafftteerr tthhee ""!!""  iiss  ppaasssseedd  ttoo  tthhee
  3910.           pprrooggrraamm  nnaammeedd  bbyy  tthhee sshheellll ooppttiioonn,, aass ddeessccrriibbeedd
  3911.           aabboovvee..  TThhee ssppeecciiffiieedd lliinneess aarree ppaasssseedd ttoo tthhee pprroo--
  3912.           ggrraamm aass ssttaannddaarrdd iinnppuutt,, aanndd tthhee ssttaannddaarrdd aanndd ssttaann--
  3913.           ddaarrdd eerrrroorr oouuttppuutt ooff tthhee pprrooggrraamm rreeppllaaccee tthhee oorriigg--
  3914.           iinnaall lliinneess..
  3915.  
  3916.           Line:    Unchanged if no range was specified, oth-
  3917.                    erwise set  to  the  first  line  of  the
  3918.                    range.
  3919.           Options: Affected by the sshheellll and wwaarrnn options.
  3920.  
  3921.      [[rraannggee]] ## [[ccoouunntt]] [[ffllaaggss]]
  3922.      [[rraannggee]] nnuu[[mmbbeerr]] [[ccoouunntt]] [[ffllaaggss]]
  3923.           Display the selected lines, each preceded with its
  3924.           line number.
  3925.  
  3926.           The line number format is "%6d", followed  by  two
  3927.           spaces.
  3928.  
  3929.           Line:    Set to the last line displayed.
  3930.           Options: Affected by the lliisstt option.
  3931.  
  3932.      @@ bbuuffffeerr
  3933.      ** bbuuffffeerr
  3934.           Execute  a  buffer.  Each line in the named buffer
  3935.           is executed as an eexx command.   If  no  buffer  is
  3936.           specified,  or  if  the specified buffer is "@"" oorr
  3937.           ""**", the last buffer executed is used.
  3938.  
  3939.      [[rraannggee]] <<[[<< ......]] [[ccoouunntt]] [[ffllaaggss]]
  3940.           Shift lines left or right.   The  specified  lines
  3941.           are  shifted  to  the  left (for the << command) or
  3942.           right (for  the  >>  command),  by  the  number  of
  3943.           columns  specified by the sshhiiffttwwiiddtthh option.  Only
  3944.           leading whitespace  characters  are  deleted  when
  3945.           shifting  left;  once the first column of the line
  3946.           contains a nonblank character, the  sshhiifftt  command
  3947.           will succeed, but the line will not be modified.
  3948.  
  3949.           If  the  command character << or >> is repeated more
  3950.           than once, the command is repeated once  for  each
  3951.           additional command character.
  3952.  
  3953.           Line:    If  the current line is set to one of the
  3954.                    lines that are affected by  the  command,
  3955.  
  3956.  
  3957.  
  3958.  
  3959.  
  3960.  
  3961.  
  3962.  
  3963.  
  3964.  
  3965. UUSSDD::1133--6622                      VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))
  3966.  
  3967.  
  3968.                    it is unchanged.  Otherwise, it is set to
  3969.                    the first nonblank character of the  low-
  3970.                    est numbered line shifted.
  3971.           Options: Affected by the sshhiiffttwwiiddtthh option.
  3972.  
  3973.      [[lliinnee]] == [[ffllaaggss]]
  3974.           Display the line number of line ((wwhhiicchh ddeeffaauullttss ttoo
  3975.           tthhee llaasstt lliinnee iinn tthhee ffiillee))..
  3976.  
  3977.           Line:    Unchanged.
  3978.           Options: None.
  3979.  
  3980.      [[rraannggee]] >>[[>> ......]] [[ccoouunntt]] [[ffllaaggss]]
  3981.           Shift right.  The specified lines are  shifted  to
  3982.           the  right  by  the number of columns specified by
  3983.           the sshhiiffttwwiiddtthh option, by inserting tab and  space
  3984.           characters.  Empty lines are not changed.
  3985.  
  3986.           If the command character ">"" iiss rreeppeeaatteedd mmoorree tthhaann
  3987.           oonnccee,, tthhee ccoommmmaanndd iiss rreeppeeaatteedd oonnccee ffoorr eeaacchh  aaddddii--
  3988.           ttiioonnaall ccoommmmaanndd cchhaarraacctteerr..
  3989.  
  3990.           Line:    Set to the last line modified by the com-
  3991.                    mand.
  3992.           Options: Affected by the sshhiiffttwwiiddtthh option.
  3993.  
  3994.      aabb[[bbrreevv]] llhhss rrhhss
  3995.           Add an abbreviation to  the  current  abbreviation
  3996.           list.  When inserting text in vvii, each time a non-
  3997.           word character is entered after a word  character,
  3998.           a  set  of characters ending at the word character
  3999.           are checked for a match with lhs..  IIff aa  mmaattcchh  iiss
  4000.           ffoouunndd,,  tthheeyy  aarree  rreeppllaacceedd  wwiitthh rrhhss.  The set of
  4001.           characters  that  are  checked  for  a  match  are
  4002.           defined  as  follows,  for inexplicable historical
  4003.           reasons.  If  only  one  or  two  characters  were
  4004.           entered  before  the non-word character that trig-
  4005.           gered the check, and after the  beginning  of  the
  4006.           insertion,  or  the  beginning  of the line or the
  4007.           file, or  the  last  <blank>  cchhaarraacctteerr  tthhaatt  wwaass
  4008.           eenntteerreedd,,  tthheenn  tthhee oonnee oorr tthhee bbootthh cchhaarraacctteerrss aarree
  4009.           cchheecckkeedd ffoorr aa mmaattcchh..  OOtthheerrwwiissee,, tthhee sseett  iinncclluuddeess
  4010.           bbootthh  cchhaarraacctteerrss,,  aass  wweellll aass tthhee cchhaarraacctteerrss tthhaatt
  4011.           pprreecceeddee tthheemm tthhaatt aarree tthhee ssaammee  wwoorrdd  ccllaassss  ((ii..ee..
  4012.           wwoorrdd  oorr nnoonn--wwoorrdd)) aass tthhee sseeccoonndd ttoo llaasstt cchhaarraacctteerr
  4013.           eenntteerreedd bbeeffoorree tthhee nnoonn--wwoorrdd cchhaarraacctteerr  tthhaatt  ttrriigg--
  4014.           ggeerreedd  tthhee cchheecckk,, bbaacckk ttoo tthhee ffiirrsstt <<bbllaannkk>>cchhaarraacc--
  4015.           tteerr,, tthhee bbeeggiinnnniinngg ooff tthhee iinnsseerrttiioonn,, oorr tthhee bbeeggiinn--
  4016.           nniinngg ooff tthhee lliinnee oorr tthhee ffiillee..
  4017.  
  4018.           FFoorr eexxaammppllee,, tthhee aabbbbrreevviiaattiioonnss::
  4019.  
  4020.  
  4021.  
  4022.  
  4023.  
  4024.  
  4025.  
  4026.  
  4027.  
  4028.  
  4029.  
  4030.  
  4031. VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))                      UUSSDD::1133--6633
  4032.  
  4033.  
  4034.           ::aabbbbrreevviiaattee   aabbcc    AABBCC
  4035.           ::aabbbbrreevviiaattee   ##ii     ##iinncclluuddee
  4036.           ::aabbbbrreevviiaattee   //**##ii   //**##iinncclluuddee
  4037.  
  4038.           will all work, while the abbreviations:
  4039.  
  4040.  
  4041.           :abbreviate   a#i   A#include
  4042.           :abbreviate   /*    /********************
  4043.  
  4044.           will not work, and are not permitted by nnvvii.
  4045.  
  4046.           To keep the abbreviation expansion from happening,
  4047.           the character immediately following the lhs  cchhaarr--
  4048.           aacctteerrss  sshhoouulldd  bbee  qquuootteedd  wwiitthh  aa <<lliitteerraall--nneexxtt>>
  4049.           character.
  4050.  
  4051.           The replacement rhs iiss iittsseellff ssuubbjjeecctt ttoo bbootthh ffuurr--
  4052.           tthheerr aabbbbrreevviiaattiioonn eexxppaannssiioonn aanndd ffuurrtthheerr mmaapp eexxppaann--
  4053.           ssiioonn..
  4054.  
  4055.           Line:    Unchanged.
  4056.           Options: None.
  4057.  
  4058.      [[lliinnee]] aa[[ppppeenndd]][[!!]]
  4059.           The input text is appended to the specified  line.
  4060.           If  line  0  is specified, the text is inserted at
  4061.           the beginning of the file.  Set to the  last  line
  4062.           input.   If  no lines are input, then set to line,,
  4063.           oorr ttoo tthhee ffiirrsstt lliinnee ooff tthhee ffiillee iiff aa  lliinnee  of  0
  4064.           was  specified.  Following the command name with a
  4065.           "!""  cchhaarraacctteerr ccaauusseess tthhee aauuttooiinnddeenntt ooppttiioonn ttoo  bbee
  4066.           ttoogggglleedd ffoorr tthhee dduurraattiioonn ooff tthhee ccoommmmaanndd..
  4067.  
  4068.           Line:    Unchanged.
  4069.           Options: Affected  by  the  aauuttooiinnddeenntt  and nnuummbbeerr
  4070.                    options.
  4071.  
  4072.      aarr[[ggss]]
  4073.           Display the argument list.  The  current  argument
  4074.           is  displayed  inside  of  "["" aanndd ""]]" characters.
  4075.           The argument list is the list of  operands  speci-
  4076.           fied  on  startup, which can be replaced using the
  4077.           nneexxtt command.
  4078.  
  4079.           Line:    Unchanged.
  4080.           Options: None.
  4081.  
  4082.      bbgg
  4083.           VVii mode only.  Background the current screen.  The
  4084.           screen  is  unchanged, but is no longer accessible
  4085.           and disappears  from  the  display.   Use  the  ffgg
  4086.  
  4087.  
  4088.  
  4089.  
  4090.  
  4091.  
  4092.  
  4093.  
  4094.  
  4095.  
  4096.  
  4097. UUSSDD::1133--6644                      VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))
  4098.  
  4099.  
  4100.           command  to  bring  the screen back to the display
  4101.           foreground.
  4102.  
  4103.           Line:    Set to the current line when  the  screen
  4104.                    was last edited.
  4105.           Options: None.
  4106.  
  4107.      [[rraannggee]] cc[[hhaannggee]][[!!]] [[ccoouunntt]]
  4108.           Replace  the lines with input text.  Following the
  4109.           command name with  a  "!""   cchhaarraacctteerr  ccaauusseess  tthhee
  4110.           aauuttooiinnddeenntt  ooppttiioonn  ttoo bbee ttoogggglleedd ffoorr tthhee dduurraattiioonn
  4111.           ooff tthhee ccoommmmaanndd..
  4112.  
  4113.           Line:    Set to the last line  input,  or,  if  no
  4114.                    lines  were input, set to the line before
  4115.                    the target line, or to the first line  of
  4116.                    the  file if there are no lines preceding
  4117.                    the target line.
  4118.           Options: Affected by  the  aauuttooiinnddeenntt  and  nnuummbbeerr
  4119.                    options.
  4120.  
  4121.      cchhdd[[iirr]][[!!]] [[ddiirreeccttoorryy]]
  4122.      ccdd[[!!]] [[ddiirreeccttoorryy]]
  4123.           Change  the current working directory.  The direc-
  4124.           tory aarrgguummeenntt iiss ssuubbjjeecctteedd ttoo  _s_h((11))  wwoorrdd  eexxppaann--
  4125.           ssiioonnss..   WWhheenn  iinnvvookkeedd  wwiitthh nnoo ddiirreeccttoorryy aarrgguummeenntt
  4126.           aanndd tthhee HHOOMMEE  _e_n_v_i_r_o_n_m_e_n_t  _v_a_r_i_a_b_l_e  _i_s  _s_e_t_,  _t_h_e
  4127.           _d_i_r_e_c_t_o_r_y  _n_a_m_e_d  _b_y _t_h_e _H_O_M_E eennvviirroonnmmeenntt vvaarriiaabbllee
  4128.           bbeeccoommeess tthhee nneeww ccuurrrreenntt ddiirreeccttoorryy..  OOtthheerrwwiissee,, tthhee
  4129.           nneeww   ccuurrrreenntt   ddiirreeccttoorryy  bbeeccoommeess  tthhee  ddiirreeccttoorryy
  4130.           rreettuurrnneedd bbyy tthhee _g_e_t_p_w_e_n_t((33)) rroouuttiinnee..
  4131.  
  4132.           TThhee cchhddiirr ccoommmmaanndd wwiillll ffaaiill iiff tthhee ffiillee  hhaass  bbeeeenn
  4133.           mmooddiiffiieedd  ssiinnccee  tthhee  llaasstt  ccoommpplleettee  wwrriittee ooff tthhee
  4134.           ffiillee..  YYoouu ccaann oovveerrrriiddee tthhiiss cchheecckk bbyy aappppeennddiinngg  aa
  4135.           ""!!""  cchhaarraacctteerr ttoo tthhee ccoommmmaanndd..
  4136.  
  4137.           Line:    Unchanged.
  4138.           Options: Affected by the ccddppaatthh option.
  4139.  
  4140.      [[rraannggee]] ccoo[[ppyy]] lliinnee [[ffllaaggss]]
  4141.      [[rraannggee]] tt lliinnee [[ffllaaggss]]
  4142.           Copy  the specified lines (range) after the desti-
  4143.           nation line.  Line 0 may be  specified  to  insert
  4144.           the lines at the beginning of the file.
  4145.  
  4146.           Line:    Unchanged.
  4147.           Options: None.
  4148.  
  4149.      ccss[[ccooppee]] ccoommmmaanndd [[aarrggss]]
  4150.           Execute  a  ccssccooppee command.  For more information,
  4151.           see the section of the reference  manual  entitled
  4152.           "TTaaggss,, TTaagg SSttaacckkss,, aanndd CCssccooppee".
  4153.  
  4154.  
  4155.  
  4156.  
  4157.  
  4158.  
  4159.  
  4160.  
  4161.  
  4162.  
  4163. VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))                      UUSSDD::1133--6655
  4164.  
  4165.  
  4166.      [[rraannggee]] dd[[eelleettee]] [[bbuuffffeerr]] [[ccoouunntt]] [[ffllaaggss]]
  4167.           Delete  the lines from the file.  The deleted text
  4168.           is saved in the specified buffer, or, if no buffer
  4169.           is  specified, in the unnamed buffer.  If the com-
  4170.           mand name is followed by a letter  that  could  be
  4171.           interpreted  as  either  a  buffer  name or a flag
  4172.           value (because neither a  count  oorr  ffllaaggss  values
  4173.           were given), eexx treats the letter as a flags vvaalluuee
  4174.           iiff tthhee  lleetttteerr  iimmmmeeddiiaatteellyy  ffoolllloowwss  tthhee  ccoommmmaanndd
  4175.           nnaammee,,  wwiitthhoouutt  aannyy wwhhiitteessppaaccee sseeppaarraattiioonn..  IIff tthhee
  4176.           lleetttteerr iiss pprreecceeddeedd bbyy  wwhhiitteessppaaccee  cchhaarraacctteerrss,,  iitt
  4177.           ttrreeaattss iitt aass aa bbuuffffeerr nnaammee..
  4178.  
  4179.           Line:    Set  to  the  line  following the deleted
  4180.                    lines, or to the last line if the deleted
  4181.                    lines were at the end.
  4182.           Options: None.
  4183.  
  4184.      ddii[[ssppllaayy]] bb[[uuffffeerrss]] || cc[[oonnnneeccttiioonnss]] || ss[[ccrreeeennss]] ||
  4185.           tt[[aaggss]]
  4186.           Display buffers, ccssccooppee  connections,  screens  or
  4187.           tags.   The  ddiissppllaayy  command  takes  one of three
  4188.           additional arguments, which are as follows:
  4189.  
  4190.           b[uffers]
  4191.                    Display  all  buffers  (including  named,
  4192.                    unnamed,  and numeric) that contain text.
  4193.           c[onnections]
  4194.                    Display the source  directories  for  all
  4195.                    attached ccssccooppee databases.
  4196.           s[creens]
  4197.                    Display  the file names of all background
  4198.                    screens.
  4199.           t[ags]   Display the tags stack.
  4200.  
  4201.           Line:    Unchanged.
  4202.           Options: None.
  4203.  
  4204.      ee[[ddiitt]][[!!]] [[++ccmmdd]] [[ffiillee]]
  4205.      eexx[[!!]] [[++ccmmdd]] [[ffiillee]]
  4206.           Edit a different file.  If the current buffer  has
  4207.           been  modified  since the last complete write, the
  4208.           command will  fail.   You  can  override  this  by
  4209.           appending a "!""  cchhaarraacctteerr ttoo tthhee ccoommmmaanndd nnaammee..
  4210.  
  4211.           IIff tthhee ""++ccmmdd" option is specified, that eexx command
  4212.           will be executed in the new file.  Any eexx  command
  4213.           may  be used, although the most common use of this
  4214.           feature is to specify a line number or search pat-
  4215.           tern  to set the initial location in the new file.
  4216.  
  4217.           Capitalizing the first letter of the command, i.e.
  4218.           EEddiitt  or  EExx, while in vvii mode, will edit the file
  4219.  
  4220.  
  4221.  
  4222.  
  4223.  
  4224.  
  4225.  
  4226.  
  4227.  
  4228.  
  4229. UUSSDD::1133--6666                      VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))
  4230.  
  4231.  
  4232.           in a new screen.  In this case, any  modifications
  4233.           to the current file are ignored.
  4234.  
  4235.           Line:    If  you  have previously edited the file,
  4236.                    the current line will be set to your last
  4237.                    position  in  the file.  If that position
  4238.                    does not exist, or you  have  not  previ-
  4239.                    ously  edited  the file, the current line
  4240.                    will be set to the first line of the file
  4241.                    if  you are in vvii mode, and the last line
  4242.                    of the file if you are in eexx.
  4243.           Options: None.
  4244.  
  4245.      eexxuu[[ssaaggee]] [[ccoommmmaanndd]]
  4246.           Display usage for an eexx command.   If  command  iiss
  4247.           ssppeecciiffiieedd,,  aa  uussaaggee ssttaatteemmeenntt ffoorr tthhaatt ccoommmmaanndd iiss
  4248.           ddiissppllaayyeedd..  OOtthheerrwwiissee,, uussaaggee ssttaatteemmeennttss ffoorr aallll eexx
  4249.           ccoommmmaannddss aarree ddiissppllaayyeedd..
  4250.  
  4251.           Line:    Unchanged.
  4252.           Options: None.
  4253.  
  4254.      ff[[iillee]] [[ffiillee]]
  4255.           Display and optionally change the file name.  If a
  4256.           file name is specified, the  current  pathname  is
  4257.           changed  to the specified name.  The current path-
  4258.           name, the number of lines, and the  current  posi-
  4259.           tion in the file are displayed.
  4260.  
  4261.           Line:    Unchanged.
  4262.           Options: None.
  4263.  
  4264.      ffgg [[nnaammee]]
  4265.           VVii  mode  only.   Foreground the specified screen.
  4266.           If the argument name  doesn't  exactly  match  the
  4267.           name  of  a file displayed by a background screen,
  4268.           it is compared against the last component of  each
  4269.           of  the  file  names.   If no background screen is
  4270.           specified, the first background  screen  is  fore-
  4271.           grounded.
  4272.  
  4273.           By   default,  foregrounding  causes  the  current
  4274.           screen to be swapped with the backgrounded screen.
  4275.           Capitalizing the first letter of the command, i.e.
  4276.           FFgg, will foreground the backgrounded screen  in  a
  4277.           new screen instead of swapping it with the current
  4278.           screen.
  4279.  
  4280.           Line:    Set to the current line when  the  screen
  4281.                    was last edited.
  4282.           Options: None.
  4283.  
  4284.  
  4285.  
  4286.  
  4287.  
  4288.  
  4289.  
  4290.  
  4291.  
  4292.  
  4293.  
  4294.  
  4295. VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))                      UUSSDD::1133--6677
  4296.  
  4297.  
  4298.      [[rraannggee]] gg[[lloobbaall]] //ppaatttteerrnn// [[ccoommmmaannddss]]
  4299.      [[rraannggee]] vv //ppaatttteerrnn// [[ccoommmmaannddss]]
  4300.           Apply commands to lines matching (or not matching)
  4301.           a pattern.  The lines within the given range  that
  4302.           match  ("g[lobal]"")),,  oorr  ddoo  nnoott  mmaattcchh ((""vv") the
  4303.           given pattern are selected.  Then,  the  specified
  4304.           eexx  command(s)  are executed with the current line
  4305.           (".""))  sseett ttoo eeaacchh sseelleecctteedd lliinnee..  IIff nnoo rraannggee  iiss
  4306.           ssppeecciiffiieedd,,  tthhee eennttiirree ffiillee iiss sseeaarrcchheedd ffoorr mmaattcchh--
  4307.           iinngg,, oorr nnoott mmaattcchhiinngg,, lliinneess..
  4308.  
  4309.           MMuullttiippllee ccoommmmaannddss ccaann bbee ssppeecciiffiieedd,, oonnee ppeerr  lliinnee,,
  4310.           bbyy  eessccaappiinngg eeaacchh <<nneewwlliinnee>> character with a back-
  4311.           slash, or by separating commands with a "|""  cchhaarr--
  4312.           aacctteerr..   IIff nnoo ccoommmmaannddss aarree ssppeecciiffiieedd,, tthhee ccoommmmaanndd
  4313.           ddeeffaauullttss ttoo tthhee pprriinntt ccoommmmaanndd..
  4314.  
  4315.           FFoorr tthhee aappppeenndd,, cchhaannggee aanndd  iinnsseerrtt  ccoommmmaannddss,,  tthhee
  4316.           iinnppuutt  tteexxtt  mmuusstt  bbee  ppaarrtt  ooff tthhee gglloobbaall ccoommmmaanndd
  4317.           lliinnee..  IInn tthhiiss ccaassee,, tthhee tteerrmmiinnaattiinngg ppeerriioodd ccaann bbee
  4318.           oommiitttteedd iiff iitt eennddss tthhee ccoommmmaannddss..
  4319.  
  4320.           TThhee vviissuuaall ccoommmmaanndd mmaayy aallssoo bbee ssppeecciiffiieedd aass oonnee ooff
  4321.           tthhee eexx ccoommmmaannddss..  IInn tthhiiss  mmooddee,,  iinnppuutt  iiss  ttaakkeenn
  4322.           ffrroomm  tthhee  tteerrmmiinnaall..   EEnntteerriinngg  aa QQ ccoommmmaanndd iinn vvii
  4323.           mmooddee ccaauusseess tthhee nneexxtt lliinnee mmaattcchhiinngg tthhee ppaatttteerrnn  ttoo
  4324.           bbee sseelleecctteedd aanndd vvii ttoo bbee rreeeenntteerreedd,, uunnttiill tthhee lliisstt
  4325.           iiss eexxhhaauusstteedd..
  4326.  
  4327.           TThhee gglloobbaall,, vv aanndd uunnddoo ccoommmmaannddss ccaannnnoott bbee uusseedd  aass
  4328.           ppaarrtt ooff tthheessee ccoommmmaannddss..
  4329.  
  4330.           TThhee   eeddiittoorr  ooppttiioonnss  aauuttooiinnddeenntt,,  aauuttoopprriinntt  aanndd
  4331.           rreeppoorrtt aarree ttuurrnneedd ooffff  ffoorr  tthhee  dduurraattiioonn  ooff  tthhee
  4332.           gglloobbaall aanndd vv ccoommmmaannddss..
  4333.  
  4334.           Line:    The last line modified.
  4335.           Options: Affected  by  the  iiggnnoorreeccaassee  and  mmaaggiicc
  4336.                    options.  Turns off the aauuttooiinnddeenntt, aauuttoo--
  4337.                    pprriinntt and rreeppoorrtt options.
  4338.  
  4339.      hhee[[llpp]]
  4340.           Display a help message.
  4341.  
  4342.           Line:    Unchanged.
  4343.           Options: None.
  4344.  
  4345.      [[lliinnee]] ii[[nnsseerrtt]][[!!]]
  4346.           The  input  text  is inserted before the specified
  4347.           line.  Following  the  command  name  with  a  "!""
  4348.           cchhaarraacctteerr  ccaauusseess tthhee aauuttooiinnddeenntt ooppttiioonn sseettttiinngg ttoo
  4349.           bbee ttoogggglleedd ffoorr tthhee dduurraattiioonn ooff tthhiiss ccoommmmaanndd..
  4350.  
  4351.  
  4352.  
  4353.  
  4354.  
  4355.  
  4356.  
  4357.  
  4358.  
  4359.  
  4360.  
  4361. UUSSDD::1133--6688                      VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))
  4362.  
  4363.  
  4364.           Line:    Set to the last line input; if  no  lines
  4365.                    were  input,  set  to the line before the
  4366.                    target line, or to the first line of  the
  4367.                    file  if there are no lines preceding the
  4368.                    target line.  Affected by the  aauuttooiinnddeenntt
  4369.                    and nnuummbbeerr options.
  4370.  
  4371.      [[rraannggee]] jj[[ooiinn]][[!!]] [[ccoouunntt]] [[ffllaaggss]]
  4372.           Join lines of text together.
  4373.  
  4374.           A  count  ssppeecciiffiieedd  ttoo tthhee ccoommmmaanndd ssppeecciiffiieess tthhaatt
  4375.           tthhee llaasstt lliinnee ooff tthhee rraannggee plus  count  ssuubbsseeqquueenntt
  4376.           lliinneess  wwiillll bbee jjooiinneedd..  ((NNoottee,, tthhiiss ddiiffffeerrss bbyy oonnee
  4377.           ffrroomm tthhee ggeenneerraall rruullee wwhheerree oonnllyy ccoouunntt- subsequent
  4378.           lines are affected.)
  4379.  
  4380.           If the current line ends with a whitespace charac-
  4381.           ter, all whitespace  is  stripped  from  the  next
  4382.           line.   Otherwise,  if the next line starts with a
  4383.           open parenthesis ("("")),, ddoo nnootthhiinngg..  OOtthheerrwwiissee,, iiff
  4384.           tthhee  ccuurrrreenntt lliinnee eennddss wwiitthh aa qquueessttiioonn mmaarrkk ((""??"),
  4385.           period (".""))  oorr eexxccllaammaattiioonn ppooiinntt  ((""!!"),  insert
  4386.           two spaces.  Otherwise, insert a single space.
  4387.  
  4388.           Appending  a  "!""   cchhaarraacctteerr  ttoo tthhee ccoommmmaanndd nnaammee
  4389.           ccaauusseess aa ssiimmpplleerr jjooiinn wwiitthh nnoo wwhhiittee--ssppaaccee pprroocceessss--
  4390.           iinngg..
  4391.  
  4392.           Line:    Unchanged.
  4393.           Options: None.
  4394.  
  4395.      [[rraannggee]] ll[[iisstt]] [[ccoouunntt]] [[ffllaaggss]]
  4396.           Display  the  lines  unambiguously.  Tabs are dis-
  4397.           played as "^I"",, aanndd tthhee eenndd ooff tthhee lliinnee iiss  mmaarrkkeedd
  4398.           wwiitthh aa ""$$" character.
  4399.  
  4400.           Line:    Set to the last line displayed.
  4401.           Options: Affected by the nnuummbbeerr option.
  4402.  
  4403.      mmaapp[[!!]] [[llhhss rrhhss]]
  4404.           Define or display maps (for vvii only).
  4405.  
  4406.           If  "lhs"" aanndd ""rrhhss" are not specified, the current
  4407.           set of command mode maps are displayed.  If a  "!""
  4408.           cchhaarraacctteerr  iiss aappppeennddeedd ttoo ttoo tthhee ccoommmmaanndd,, tthhee tteexxtt
  4409.           iinnppuutt mmooddee mmaappss aarree ddiissppllaayyeedd..
  4410.  
  4411.           OOtthheerrwwiissee,, wwhheenn tthhee ""llhhss"  character  sequence  is
  4412.           entered in vvii, the action is as if the correspond-
  4413.           ing "rhs"" hhaadd bbeeeenn eenntteerreedd..  IIff aa  ""!!"   character
  4414.           is  appended  to  the command name, the mapping is
  4415.           effective during text input mode, otherwise, it is
  4416.           effective  during command mode.  This allows "lhs""
  4417.  
  4418.  
  4419.  
  4420.  
  4421.  
  4422.  
  4423.  
  4424.  
  4425.  
  4426.  
  4427. VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))                      UUSSDD::1133--6699
  4428.  
  4429.  
  4430.           ttoo hhaavvee ttwwoo ddiiffffeerreenntt  mmaaccrroo  ddeeffiinniittiioonnss  aatt  tthhee
  4431.           ssaammee  ttiimmee:: oonnee ffoorr ccoommmmaanndd mmooddee aanndd oonnee ffoorr iinnppuutt
  4432.           mmooddee..
  4433.  
  4434.           WWhhiitteessppaaccee  cchhaarraacctteerrss  rreeqquuiirree  eessccaappiinngg  wwiitthh  aa
  4435.           <<lliitteerraall--nneexxtt>>  character to be entered in the lhs
  4436.           ssttrriinngg iinn vviissuuaall mmooddee..
  4437.  
  4438.           NNoorrmmaallllyy,, kkeeyyss iinn tthhee rrhhss string are remapped (see
  4439.           the  rreemmaapp  option),  and it is possible to create
  4440.           infinite loops.  However, keys which map to  them-
  4441.           selves are not further remapped, regardless of the
  4442.           setting of the rreemmaapp  option.   For  example,  the
  4443.           command  ":map  n  nz.""  mmaappss tthhee ""nn" key to the nn
  4444.           and zz commands.
  4445.  
  4446.           To exit an infinitely looping map, use the  termi-
  4447.           nal <interrupt> cchhaarraacctteerr..
  4448.  
  4449.           Line:    Unchanged.
  4450.           Options: Affected by the rreemmaapp option.
  4451.  
  4452.      [[lliinnee]] mmaa[[rrkk]] <<cchhaarraacctteerr>>
  4453.      [[lliinnee]] kk <<cchhaarraacctteerr>>
  4454.           Mark  the  line  with  the  mark <character>..  TThhee
  4455.           eexxpprreessssiioonnss ""''<<cchhaarraacctteerr>>" and "`<character>""  ccaann
  4456.           tthheenn  bbee  uusseedd  aass  aann aaddddrreessss iinn aannyy ccoommmmaanndd tthhaatt
  4457.           uusseess oonnee..
  4458.  
  4459.           Line:    Unchanged.
  4460.           Options: None.
  4461.  
  4462.      [[rraannggee]] mm[[oovvee]] lliinnee
  4463.           Move the specified lines after the target line.  A
  4464.           target line of 0 places the lines at the beginning
  4465.           of the file.
  4466.  
  4467.           Line:    Set to the first of the moved lines.
  4468.           Options: None.
  4469.  
  4470.      mmkk[[eexxrrcc]][[!!]] ffiillee
  4471.           Write the abbreviations, editor options  and  maps
  4472.           to  the specified file.  Information is written in
  4473.           a form which can later be read back in  using  the
  4474.           eexx  ssoouurrccee  command.   If file aallrreeaaddyy eexxiissttss,, tthhee
  4475.           mmkkeexxrrcc ccoommmmaanndd wwiillll ffaaiill..  TThhiiss cchheecckk ccaann bbee oovveerr--
  4476.           rriiddddeenn  bbyy  aappppeennddiinngg aa ""!!""  cchhaarraacctteerr ttoo tthhee ccoomm--
  4477.           mmaanndd..
  4478.  
  4479.           Line:    Unchanged.
  4480.           Options: None.
  4481.  
  4482.  
  4483.  
  4484.  
  4485.  
  4486.  
  4487.  
  4488.  
  4489.  
  4490.  
  4491.  
  4492.  
  4493. UUSSDD::1133--7700                      VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))
  4494.  
  4495.  
  4496.      nn[[eexxtt]][[!!]] [[ffiillee ......]]
  4497.           Edit the next file from the  argument  list.   The
  4498.           nneexxtt  command will fail if the file has been modi-
  4499.           fied since the last complete  write.   This  check
  4500.           can  be overridden by appending the "!""  cchhaarraacctteerr
  4501.           ttoo  tthhee  ccoommmmaanndd  nnaammee..   TThhee  aarrgguummeenntt  lliisstt  ccaann
  4502.           ooppttiioonnaallllyy  bbee rreeppllaacceedd bbyy ssppeecciiffyyiinngg aa nneeww oonnee aass
  4503.           aarrgguummeennttss ttoo tthhiiss ccoommmmaanndd..  IInn tthhiiss ccaassee,,  eeddiittiinngg
  4504.           ssttaarrttss wwiitthh tthhee ffiirrsstt ffiillee oonn tthhee nneeww lliisstt..
  4505.  
  4506.           CCaappiittaalliizziinngg tthhee ffiirrsstt lleetttteerr ooff tthhee ccoommmmaanndd,, ii..ee..
  4507.           NNeexxtt,, wwhhiillee iinn vvii mmooddee,, wwiillll sseett tthhee aarrgguummeenntt lliisstt
  4508.           aanndd  eeddiitt tthhee ffiillee iinn aa nneeww ssccrreeeenn..  IInn tthhiiss ccaassee,,
  4509.           aannyy mmooddiiffiiccaattiioonnss ttoo tthhee ccuurrrreenntt ffiillee aarree iiggnnoorreedd..
  4510.  
  4511.           Line:    Set as described for the eeddiitt command.
  4512.           Options: Affected  by  the  options  aauuttoowwrriittee and
  4513.                    wwrriitteeaannyy.
  4514.  
  4515.      [[lliinnee]] oo[[ppeenn]] //ppaatttteerrnn// [[ffllaaggss]]
  4516.           Enter open mode.  Open mode is the same  as  being
  4517.           in  vvii, but with a one-line window.  All the stan-
  4518.           dard vvii commands are available.   If  a  match  is
  4519.           found  for the optional RE argument, the cursor is
  4520.           set to the start of the matching pattern.
  4521.  
  4522.           _T_h_i_s _c_o_m_m_a_n_d _i_s _n_o_t _y_e_t _i_m_p_l_e_m_e_n_t_e_d_.
  4523.  
  4524.           Line:    Unchanged,  unless  the  optional  RE  is
  4525.                    specified, in which case it is set to the
  4526.                    line where the matching pattern is found.
  4527.           Options: Affected by the ooppeenn option.
  4528.  
  4529.      pprree[[sseerrvvee]]
  4530.           Save  the  file in a form that can later be recov-
  4531.           ered using the eexx --rr option.   When  the  file  is
  4532.           preserved, an email message is sent to the user.
  4533.  
  4534.           Line:    Unchanged.
  4535.           Options: None.
  4536.  
  4537.      pprreevv[[iioouuss]][[!!]]
  4538.           Edit  the  previous  file  from the argument list.
  4539.           The pprreevviioouuss command will fail  if  the  file  has
  4540.           been modified since the last complete write.  This
  4541.           check can  be  overridden  by  appending  the  "!""
  4542.           cchhaarraacctteerr ttoo tthhee ccoommmmaanndd nnaammee..
  4543.  
  4544.           CCaappiittaalliizziinngg tthhee ffiirrsstt lleetttteerr ooff tthhee ccoommmmaanndd,, ii..ee..
  4545.           PPrreevviioouuss,, wwhhiillee iinn vvii mmooddee,, wwiillll eeddiitt tthhee ffiillee  iinn
  4546.           aa  nneeww ssccrreeeenn..  IInn tthhiiss ccaassee,, aannyy mmooddiiffiiccaattiioonnss ttoo
  4547.           tthhee ccuurrrreenntt ffiillee aarree iiggnnoorreedd..
  4548.  
  4549.  
  4550.  
  4551.  
  4552.  
  4553.  
  4554.  
  4555.  
  4556.  
  4557.  
  4558.  
  4559. VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))                      UUSSDD::1133--7711
  4560.  
  4561.  
  4562.           Line:    Set as described for the eeddiitt command.
  4563.           Options: Affected by  the  options  aauuttoowwrriittee  and
  4564.                    wwrriitteeaannyy.  None.
  4565.  
  4566.      [[rraannggee]] pp[[rriinntt]] [[ccoouunntt]] [[ffllaaggss]]
  4567.           Display the specified lines.
  4568.  
  4569.           Line:    Set to the last line displayed.
  4570.           Options: Affected by the lliisstt and nnuummbbeerr option.
  4571.  
  4572.      [[lliinnee]] ppuu[[tt]] [[bbuuffffeerr]]
  4573.           Append  buffer contents to the current line.  If a
  4574.           buffer is specified, its contents are appended  to
  4575.           the  line,  otherwise, the contents of the unnamed
  4576.           buffer are used.
  4577.  
  4578.           Line:    Set to the line after the current line.
  4579.           Options: None.
  4580.  
  4581.      qq[[uuiitt]][[!!]]
  4582.           End the editing session.  If  the  file  has  been
  4583.           modified  since  the last complete write, the qquuiitt
  4584.           command will fail.  This check may  be  overridden
  4585.           by appending a "!""  cchhaarraacctteerr ttoo tthhee ccoommmmaanndd..
  4586.  
  4587.           IIff  tthheerree aarree mmoorree ffiilleess ttoo eeddiitt,, tthhee qquuiitt ccoommmmaanndd
  4588.           wwiillll ffaaiill..  AAppppeennddiinngg aa ""!!""  cchhaarraacctteerr ttoo tthhee ccoomm--
  4589.           mmaanndd nnaammee oorr eenntteerriinngg ttwwoo qquuiitt ccoommmmaannddss ((ii..ee..  wwqq,,
  4590.           qquuiitt,, xxiitt oorr ZZZZ)) iinn  aa  rrooww))  wwiillll  oovveerrrriiddee  tthhiiss
  4591.           cchheecckk aanndd tthhee eeddiittoorr wwiillll eexxiitt..
  4592.  
  4593.           Line:    Unchanged.
  4594.           Options: None.
  4595.  
  4596.      [[lliinnee]] rr[[eeaadd]][[!!]] [[ffiillee]]
  4597.           Read  a  file.   A  copy  of the specified file is
  4598.           appended to the line.  If line iiss 00,, tthhee  ccooppyy  iiss
  4599.           iinnsseerrtteedd aatt tthhee bbeeggiinnnniinngg ooff tthhee ffiillee..  IIff nnoo ffiillee
  4600.           iiss ssppeecciiffiieedd,, tthhee ccuurrrreenntt ffiillee iiss rreeaadd;;  iiff  tthheerree
  4601.           iiss  nnoo ccuurrrreenntt ffiillee,, tthheenn ffiillee becomes the current
  4602.           file.  If there is no current file and no file  iiss
  4603.           ssppeecciiffiieedd,, tthheenn tthhee rreeaadd ccoommmmaanndd wwiillll ffaaiill..
  4604.  
  4605.           IIff  ffiillee  iiss pprreecceeddeedd bbyy aa ""!!""  cchhaarraacctteerr,, ffiillee iiss
  4606.           ttrreeaatteedd aass iiff iitt wweerree aa sshheellll ccoommmmaanndd,, aanndd  ppaasssseedd
  4607.           ttoo  tthhee  pprrooggrraamm  nnaammeedd  bbyy tthhee sshheellll eeddiitt ooppttiioonn..
  4608.           TThhee ssttaannddaarrdd aanndd ssttaannddaarrdd eerrrroorr  oouuttppuuttss  ooff  tthhaatt
  4609.           ccoommmmaanndd aarree rreeaadd iinnttoo tthhee ffiillee aafftteerr tthhee ssppeecciiffiieedd
  4610.           lliinnee..  TThhee ssppeecciiaall mmeeaanniinngg ooff tthhee  ""!!""   cchhaarraacctteerr
  4611.           ccaann  bbee oovveerrrriiddddeenn bbyy eessccaappiinngg iitt wwiitthh aa bbaacckkssllaasshh
  4612.           ((""\\"")) cchhaarraacctteerr..
  4613.  
  4614.  
  4615.  
  4616.  
  4617.  
  4618.  
  4619.  
  4620.  
  4621.  
  4622.  
  4623.  
  4624.  
  4625. UUSSDD::1133--7722                      VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))
  4626.  
  4627.  
  4628.           Line:    When executed from eexx, the  current  line
  4629.                    is  set to the last line read.  When exe-
  4630.                    cuted from vvii, the current line is set to
  4631.                    the first line read.
  4632.           Options: None.
  4633.  
  4634.      rreecc[[oovveerr]] ffiillee
  4635.           Recover  file  iiff  iitt wwaass pprreevviioouussllyy ssaavveedd..  IIff nnoo
  4636.           ssaavveedd ffiillee bbyy tthhaatt nnaammee eexxiissttss,, tthhee  rreeccoovveerr  ccoomm--
  4637.           mmaanndd bbeehhaavveess eeqquuiivvaalleennttllyy ttoo tthhee eeddiitt ccoommmmaanndd..
  4638.  
  4639.           Line:    Set as described for the eeddiitt command.
  4640.           Options: None.
  4641.  
  4642.      rreess[[iizzee]] [[++||--]]ssiizzee
  4643.           VVii  mode only.  Grow or shrink the current screen.
  4644.           If size iiss aa ppoossiittiivvee,, ssiiggnneedd nnuummbbeerr,, tthhee  ccuurrrreenntt
  4645.           ssccrreeeenn  iiss ggrroowwnn bbyy tthhaatt mmaannyy lliinneess..  IIff ssiizzee is a
  4646.           negative, signed number,  the  current  screen  is
  4647.           shrunk by that many lines.  If size iiss nnoott ssiiggnneedd,,
  4648.           tthhee ccuurrrreenntt ssccrreeeenn iiss sseett ttoo tthhee  ssppeecciiffiieedd  ssiizzee.
  4649.           Applicable only to split screens.
  4650.  
  4651.           Line:    Unchanged.
  4652.           Options: None.
  4653.  
  4654.      rreeww[[iinndd]][[!!]]
  4655.           Rewind the argument list.  If the current file has
  4656.           been modified since the last complete  write,  the
  4657.           rreewwiinndd command will fail.  This check may be over-
  4658.           ridden by appending the "!""  cchhaarraacctteerr ttoo tthhee ccoomm--
  4659.           mmaanndd..
  4660.  
  4661.           OOtthheerrwwiissee,,  tthhee  ccuurrrreenntt  ffiillee iiss sseett ttoo tthhee ffiirrsstt
  4662.           ffiillee iinn tthhee aarrgguummeenntt lliisstt..
  4663.  
  4664.           Line:    Set as described for the eeddiitt command.
  4665.           Options: Affected by the  aauuttoowwrriittee  and  wwrriitteeaannyy
  4666.                    options.
  4667.  
  4668.           [[aallll]]
  4669.      ssee[[tt]]  [[ooppttiioonn[[==[[vvaalluuee]]]]  ......]]  [[nnooooppttiioonn ......]] [[ooppttiioonn??
  4670.           ......]]
  4671.           Display  or set editor options.  When no arguments
  4672.           are specified, the editor  option  tteerrmm,  and  any
  4673.           editor options whose values have been changed from
  4674.           the default settings are displayed.  If the  argu-
  4675.           ment all iiss ssppeecciiffiieedd,, tthhee vvaalluueess ooff aallll ooff eeddiittoorr
  4676.           ooppttiioonnss aarree ddiissppllaayyeedd..
  4677.  
  4678.           SSppeecciiffyyiinngg aann ooppttiioonn nnaammee ffoolllloowweedd bbyy tthhee  cchhaarraacc--
  4679.           tteerr  ""??"   causes the current value of that option
  4680.           to be displayed.  The "?""  ccaann bbee  sseeppaarraatteedd  ffrroomm
  4681.  
  4682.  
  4683.  
  4684.  
  4685.  
  4686.  
  4687.  
  4688.  
  4689.  
  4690.  
  4691. VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))                      UUSSDD::1133--7733
  4692.  
  4693.  
  4694.           tthhee ooppttiioonn nnaammee bbyy wwhhiitteessppaaccee cchhaarraacctteerrss..  TThhee ""??"
  4695.           is necessary  only  for  Boolean  valued  options.
  4696.           Boolean  options  can  be given values by the form
  4697.           "set option"" ttoo ttuurrnn tthheemm oonn,, oorr ""sseett nnooooppttiioonn" to
  4698.           turn  them off.  String and numeric options can be
  4699.           assigned by  the  form  "set  option=value""..   AAnnyy
  4700.           wwhhiitteessppaaccee  cchhaarraacctteerrss  iinn ssttrriinnggss ccaann bbee iinncclluuddeedd
  4701.           lliitteerraallllyy bbyy  pprreecceeddiinngg  eeaacchh  wwiitthh  aa  bbaacckkssllaasshh..
  4702.           MMoorree  tthhaann  oonnee  ooppttiioonn  ccaann bbee sseett oorr lliisstteedd bbyy aa
  4703.           ssiinnggllee sseett ccoommmmaanndd,, bbyy ssppeecciiffyyiinngg  mmuullttiippllee  aarrgguu--
  4704.           mmeennttss,,  eeaacchh sseeppaarraatteedd ffrroomm tthhee nneexxtt bbyy wwhhiitteessppaaccee
  4705.           cchhaarraacctteerrss..
  4706.  
  4707.           Line:    Unchanged.
  4708.           Options: None.
  4709.  
  4710.      sshh[[eellll]]
  4711.           Run the shell program.  The program named  by  the
  4712.           sshheellll  option  is  run with a --ii (for interactive)
  4713.           flag.  Editing is resumed when that program exits.
  4714.  
  4715.           Line:    Unchanged.
  4716.           Options: Affected by the sshheellll option.
  4717.  
  4718.      ssoo[[uurrccee]] ffiillee
  4719.           Read  and execute eexx commands from a file.  SSoouurrccee
  4720.           commands may be nested.
  4721.  
  4722.           Line:    Unchanged.
  4723.           Options: None.
  4724.  
  4725.           [[ffllaaggss]]
  4726.      [[rraannggee]] ss[[uubbssttiittuuttee]] [[//ppaatttteerrnn//rreeppllaaccee//]]  [[ooppttiioonnss]]
  4727.           [[ccoouunntt]]
  4728.      [[rraannggee]] && [[ooppttiioonnss]] [[ccoouunntt]] [[ffllaaggss]]
  4729.      [[rraannggee]] ~~ [[ooppttiioonnss]] [[ccoouunntt]] [[ffllaaggss]]
  4730.           Make substitutions.  Replace the first instance of
  4731.           pattern  wwiitthh  tthhee ssttrriinngg rreeppllaaccee on the specified
  4732.           line(s).  If the "/pattern/repl/"" aarrgguummeenntt iiss  nnoott
  4733.           ssppeecciiffiieedd,,  tthhee ""//ppaatttteerrnn//rreeppll//" from the previous
  4734.           ssuubbssttiittuuttee command is used.  Any  character  other
  4735.           than  an alphabetic, numeric, <blank> or backslash
  4736.           character may be used as the delimiter.
  4737.  
  4738.           If options iinncclluuddeess tthhee lleetttteerr ""cc" (confirm),  you
  4739.           will  be  prompted  for  confirmation  before each
  4740.           replacement is done.  An affirmative response  (in
  4741.           English,  a  "y"" cchhaarraacctteerr)) ccaauusseess tthhee rreeppllaacceemmeenntt
  4742.           ttoo bbee mmaaddee..  AA qquuiitt rreessppoonnssee ((iinn  EEnngglliisshh,,  aa  ""qq"
  4743.           character)  causes  the  ssuubbssttiittuuttee  command to be
  4744.           terminated.   Any  other   response   causes   the
  4745.           replacement  not  to  be  made, and the ssuubbssttiittuuttee
  4746.           command continues.  If options iinncclluuddeess tthhee lleetttteerr
  4747.  
  4748.  
  4749.  
  4750.  
  4751.  
  4752.  
  4753.  
  4754.  
  4755.  
  4756.  
  4757. UUSSDD::1133--7744                      VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))
  4758.  
  4759.  
  4760.           ""gg" (global), all nonoverlapping instances of pat-
  4761.           tern iinn tthhee lliinnee aarree rreeppllaacceedd..
  4762.  
  4763.           TThhee && vveerrssiioonn ooff tthhee ccoommmmaanndd iiss tthhee  ssaammee  aass  nnoott
  4764.           ssppeecciiffyyiinngg  aa ppaatttteerrnn oorr rreeppllaacceemmeenntt ssttrriinngg ttoo tthhee
  4765.           ssuubbssttiittuuttee ccoommmmaanndd,, aanndd tthhee ""&&"" iiss rreeppllaacceedd bbyy tthhee
  4766.           ppaatttteerrnn  aanndd rreeppllaacceemmeenntt iinnffoorrmmaattiioonn ffrroomm tthhee pprree--
  4767.           vviioouuss ssuubbssttiittuuttee ccoommmmaanndd..
  4768.  
  4769.           TThhee ~~ vveerrssiioonn ooff tthhee ccoommmmaanndd iiss tthhee ssaammee aass &&  aanndd
  4770.           ss,, eexxcceepptt tthhaatt tthhee sseeaarrcchh ppaatttteerrnn uusseedd iiss tthhee llaasstt
  4771.           RREE uusseedd iinn _a_n_y ccoommmmaanndd,, nnoott  nneecceessssaarriillyy  tthhee  oonnee
  4772.           uusseedd iinn tthhee llaasstt ssuubbssttiittuuttee ccoommmmaanndd..
  4773.  
  4774.           FFoorr eexxaammppllee,, iinn tthhee sseeqquueennccee
  4775.  
  4776.               ss//rreedd//bblluuee//
  4777.               //ggrreeeenn
  4778.               ~~
  4779.  
  4780.           the "~"" iiss eeqquuiivvaalleenntt ttoo ""ss//ggrreeeenn//bblluuee//".
  4781.  
  4782.           The  ssuubbssttiittuuttee  command may be interrupted, using
  4783.           the terminal interrupt character.   All  substitu-
  4784.           tions completed before the interrupt are retained.
  4785.  
  4786.           Line:    Set to the last line upon which a substi-
  4787.                    tution was made.
  4788.           Options: Affected  by  the  iiggnnoorreeccaassee  and  mmaaggiicc
  4789.                    option.
  4790.  
  4791.      ssuu[[ssppeenndd]][[!!]]
  4792.      sstt[[oopp]][[!!]]
  4793.      <<ccoonnttrrooll--ZZ>>
  4794.           Suspend the edit session.  Appending a "!""   cchhaarr--
  4795.           aacctteerr  ttoo  tthheessee  ccoommmmaannddss ttuurrnnss ooffff tthhee aauuttoowwrriittee
  4796.           ooppttiioonn ffoorr tthhee ccoommmmaanndd..
  4797.  
  4798.           Line:    Unchanged.
  4799.           Options: Affected by the  aauuttoowwrriittee  and  wwrriitteeaannyy
  4800.                    options.
  4801.  
  4802.      ttaa[[gg]][[!!]] ttaaggssttrriinngg
  4803.           Edit  the  file  containing the specified tag.  If
  4804.           the tag is in a different file, then the new  file
  4805.           is  edited.  If the current file has been modified
  4806.           since the last complete  write,  the  ttaagg  command
  4807.           will  fail.   This  check  can  be  overridden  by
  4808.           appending the "!""  cchhaarraacctteerr ttoo tthhee ccoommmmaanndd  nnaammee..
  4809.  
  4810.           TThhee ttaagg ccoommmmaanndd sseeaarrcchheess ffoorr ttaaggssttrriinngg iinn tthhee ttaaggss
  4811.           ffiillee((ss)) ssppeecciiffiieedd bbyy tthhee  ooppttiioonn..   ((SSeeee  _c_t_a_g_s((11))
  4812.           ffoorr mmoorree iinnffoorrmmaattiioonn oonn ttaaggss ffiilleess..))
  4813.  
  4814.  
  4815.  
  4816.  
  4817.  
  4818.  
  4819.  
  4820.  
  4821.  
  4822.  
  4823. VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))                      UUSSDD::1133--7755
  4824.  
  4825.  
  4826.           CCaappiittaalliizziinngg tthhee ffiirrsstt lleetttteerr ooff tthhee ccoommmmaanndd,, ii..ee..
  4827.           TTaagg,, wwhhiillee iinn vvii mmooddee,, wwiillll eeddiitt tthhee ffiillee iinn aa nneeww
  4828.           ssccrreeeenn..   IInn  tthhiiss  ccaassee,, aannyy mmooddiiffiiccaattiioonnss ttoo tthhee
  4829.           ccuurrrreenntt ffiillee aarree iiggnnoorreedd..
  4830.  
  4831.           Line:    Set to the line indicated by the tag.
  4832.           Options: Affected  by  the  aauuttoowwrriittee,  ttaagglleennggtthh,
  4833.                    ttaaggss and wwrriitteeaannyy options.
  4834.  
  4835.      ttaaggnn[[eexxtt]][[!!]]
  4836.           Edit  the file containing the next context for the
  4837.           current tag.  If the context  is  in  a  different
  4838.           file, then the new file is edited.  If the current
  4839.           file has been modified  since  the  last  complete
  4840.           write,  the ttaaggnneexxtt command will fail.  This check
  4841.           can be overridden by appending the "!""   cchhaarraacctteerr
  4842.           ttoo tthhee ccoommmmaanndd nnaammee..
  4843.  
  4844.           CCaappiittaalliizziinngg tthhee ffiirrsstt lleetttteerr ooff tthhee ccoommmmaanndd,, ii..ee..
  4845.           TTaaggnneexxtt,, wwhhiillee iinn vvii mmooddee,, wwiillll eeddiitt tthhee ffiillee iinn aa
  4846.           nneeww  ssccrreeeenn..   IInn  tthhiiss ccaassee,, aannyy mmooddiiffiiccaattiioonnss ttoo
  4847.           tthhee ccuurrrreenntt ffiillee aarree iiggnnoorreedd..
  4848.  
  4849.           Line:    Set to the line indicated by the tag.
  4850.           Options: Affected by the  aauuttoowwrriittee  and  wwrriitteeaannyy
  4851.                    options.
  4852.  
  4853.      ttaaggpp[[oopp]][[!!]] [[ffiillee || nnuummbbeerr]]
  4854.           Pop  to  the  specified tag in the tags stack.  If
  4855.           neither file oorr nnuummbbeerr is  specified,  the  ttaaggppoopp
  4856.           command  pops to the most recent entry on the tags
  4857.           stack.  If file oorr nnuummbbeerr is specified, the ttaaggppoopp
  4858.           command  pops to the most recent entry in the tags
  4859.           stack for that file, or numbered entry in the tags
  4860.           stack, respectively.  (See the ddiissppllaayy command for
  4861.           information on displaying the tags stack.)
  4862.  
  4863.           If the file has been modified since the last  com-
  4864.           plete  write,  the ttaaggppoopp command will fail.  This
  4865.           check may be overridden by appending a "!""   cchhaarr--
  4866.           aacctteerr ttoo tthhee ccoommmmaanndd nnaammee..
  4867.  
  4868.           Line:    Set to the line indicated by the tag.
  4869.           Options: Affected  by  the  aauuttoowwrriittee and wwrriitteeaannyy
  4870.                    options.
  4871.  
  4872.      ttaaggpp[[rreevv]][[!!]]
  4873.           Edit the file containing the previous context  for
  4874.           the current tag.  If the context is in a different
  4875.           file, then the new file is edited.  If the current
  4876.           file  has  been  modified  since the last complete
  4877.           write, the ttaaggpprreevv command will fail.  This  check
  4878.           can  be overridden by appending the "!""  cchhaarraacctteerr
  4879.  
  4880.  
  4881.  
  4882.  
  4883.  
  4884.  
  4885.  
  4886.  
  4887.  
  4888.  
  4889. UUSSDD::1133--7766                      VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))
  4890.  
  4891.  
  4892.           ttoo tthhee ccoommmmaanndd nnaammee..
  4893.  
  4894.           CCaappiittaalliizziinngg tthhee ffiirrsstt lleetttteerr ooff tthhee ccoommmmaanndd,, ii..ee..
  4895.           TTaaggpprreevv,, wwhhiillee iinn vvii mmooddee,, wwiillll eeddiitt tthhee ffiillee iinn aa
  4896.           nneeww ssccrreeeenn..  IInn tthhiiss ccaassee,,  aannyy  mmooddiiffiiccaattiioonnss  ttoo
  4897.           tthhee ccuurrrreenntt ffiillee aarree iiggnnoorreedd..
  4898.  
  4899.           Line:    Set to the line indicated by the tag.
  4900.           Options: Affected  by  the  aauuttoowwrriittee and wwrriitteeaannyy
  4901.                    options.
  4902.  
  4903.      ttaaggtt[[oopp]][[!!]]
  4904.           Pop to the least recent tag  on  the  tags  stack,
  4905.           clearing the tags stack.
  4906.  
  4907.           If  the file has been modified since the last com-
  4908.           plete write, the ttaaggttoopp command will  fail.   This
  4909.           check  may be overridden by appending a "!""  cchhaarr--
  4910.           aacctteerr ttoo tthhee ccoommmmaanndd nnaammee..
  4911.  
  4912.           Line:    Set to the line indicated by the tag.
  4913.           Options: Affected by the  aauuttoowwrriittee  and  wwrriitteeaannyy
  4914.                    options.
  4915.  
  4916.      uunnaa[[bbbbrreevv]] llhhss
  4917.           Delete  an abbreviation.  Delete lhs ffrroomm tthhee ccuurr--
  4918.           rreenntt lliisstt ooff aabbbbrreevviiaattiioonnss..
  4919.  
  4920.           Line:    Unchanged.
  4921.           Options: None.
  4922.  
  4923.      uu[[nnddoo]]
  4924.           Undo the last change made to  the  file.   Changes
  4925.           made  by  gglloobbaall,  vv, vviissuuaall and map sequences are
  4926.           considered a single command.  If repeated,  the  uu
  4927.           command  alternates  between these two states, and
  4928.           is its own inverse.
  4929.  
  4930.           Line:    Set to the last line modified by the com-
  4931.                    mand.
  4932.           Options: None.
  4933.  
  4934.      uunnmm[[aapp]][[!!]] llhhss
  4935.           Unmap  a  mapped  string.  Delete the command mode
  4936.           map definition for lhs..  IIff aa  ""!!"   character  is
  4937.           appended  to  the  command  name,  delete the text
  4938.           input mode map definition instead.
  4939.  
  4940.           Line:    Unchanged.
  4941.           Options: None.
  4942.  
  4943.      vvee[[rrssiioonn]]
  4944.           Display the version of the eexx//vvii editor.
  4945.  
  4946.  
  4947.  
  4948.  
  4949.  
  4950.  
  4951.  
  4952.  
  4953.  
  4954.  
  4955. VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))                      UUSSDD::1133--7777
  4956.  
  4957.  
  4958.      [[lliinnee]] vvii[[ssuuaall]] [[ttyyppee]] [[ccoouunntt]] [[ffllaaggss]]
  4959.           EExx mode only.  Enter vvii.  The  type  iiss  ooppttiioonnaall,,
  4960.           aanndd  ccaann  bbee  ""--", "+"" oorr ""^^", as in the eexx zz com-
  4961.           mand, to specify the  position  of  the  specified
  4962.           line  in  the  screen  window.  (The default is to
  4963.           place the line at the top of the  screen  window.)
  4964.           A  count  ssppeecciiffiieess  tthhee nnuummbbeerr ooff lliinneess tthhaatt wwiillll
  4965.           iinniittiiaallllyy bbee ddiissppllaayyeedd..  ((TThhee ddeeffaauulltt iiss tthhee vvaalluuee
  4966.           ooff tthhee wwiinnddooww eeddiittoorr ooppttiioonn..))
  4967.  
  4968.           Line:    Unchanged  unless  line  iiss ssppeecciiffiieedd,, iinn
  4969.                    wwhhiicchh ccaassee iitt iiss sseett ttoo tthhaatt lliinnee..
  4970.           Options: None.
  4971.  
  4972.      vvii[[ssuuaall]][[!!]] [[++ccmmdd]] [[ffiillee]]
  4973.           VVii mode only.  Edit a new file.  Identical to  the
  4974.           "edit[!] [+cmd] [file]"" ccoommmmaanndd..
  4975.  
  4976.           CCaappiittaalliizziinngg tthhee ffiirrsstt lleetttteerr ooff tthhee ccoommmmaanndd,, ii..ee..
  4977.           VViissuuaall,, wwiillll eeddiitt tthhee ffiillee iinn aa  nneeww  ssccrreeeenn..   IInn
  4978.           tthhiiss  ccaassee,,  aannyy mmooddiiffiiccaattiioonnss ttoo tthhee ccuurrrreenntt ffiillee
  4979.           aarree iiggnnoorreedd..
  4980.  
  4981.      vviiuu[[ssaaggee]] [[ccoommmmaanndd]]
  4982.           Display usage for a vvii  command.   If  command  iiss
  4983.           ssppeecciiffiieedd,,  aa  uussaaggee ssttaatteemmeenntt ffoorr tthhaatt ccoommmmaanndd iiss
  4984.           ddiissppllaayyeedd..  OOtthheerrwwiissee,, uussaaggee ssttaatteemmeennttss ffoorr aallll vvii
  4985.           ccoommmmaannddss aarree ddiissppllaayyeedd..
  4986.  
  4987.           Line:    Unchanged.
  4988.           Options: None.
  4989.  
  4990.      [[rraannggee]] ww[[rriittee]][[!!]] [[>>>>]] [[ffiillee]]
  4991.      [[rraannggee]] ww[[rriittee]] [[!!]] [[ffiillee]]
  4992.      [[rraannggee]] wwnn[[!!]] [[>>>>]] [[ffiillee]]
  4993.      [[rraannggee]] wwqq[[!!]] [[>>>>]] [[ffiillee]]
  4994.           Write  the  file.  The specified lines (the entire
  4995.           file, if no range is given) is  written  to  file..
  4996.           IIff  ffiillee is not specified, the current pathname is
  4997.           used.  If file iiss ssppeecciiffiieedd,, aanndd iitt eexxiissttss,, oorr  iiff
  4998.           tthhee  ccuurrrreenntt  ppaatthhnnaammee wwaass sseett uussiinngg tthhee ffiillee ccoomm--
  4999.           mmaanndd,, aanndd tthhee ffiillee aallrreeaaddyy eexxiissttss,, tthheessee  ccoommmmaannddss
  5000.           wwiillll ffaaiill..  AAppppeennddiinngg aa ""!!""  cchhaarraacctteerr ttoo tthhee ccoomm--
  5001.           mmaanndd nnaammee wwiillll oovveerrrriiddee tthhiiss cchheecckk aanndd  tthhee  wwrriittee
  5002.           wwiillll bbee aatttteemmpptteedd,, rreeggaarrddlleessss..
  5003.  
  5004.           SSppeecciiffyyiinngg tthhee ooppttiioonnaall "">>>>"" ssttrriinngg wwiillll ccaauussee tthhee
  5005.           wwrriittee ttoo bbee aappppeennddeedd ttoo tthhee ffiillee,, iinn wwhhiicchh ccaassee nnoo
  5006.           tteessttss aarree mmaaddee ffoorr tthhee ffiillee aallrreeaaddyy eexxiissttiinngg..
  5007.  
  5008.           IIff  tthhee  ffiillee iiss pprreecceeddeedd bbyy aa ""!!""  cchhaarraacctteerr,, tthhee
  5009.           pprrooggrraamm nnaammeedd bbyy tthhee sshheellll eeddiitt ooppttiioonn iiss  iinnvvookkeedd
  5010.           wwiitthh   ffiillee   aass  iittss  sseeccoonndd  aarrgguummeenntt,,  aanndd  tthhee
  5011.  
  5012.  
  5013.  
  5014.  
  5015.  
  5016.  
  5017.  
  5018.  
  5019.  
  5020.  
  5021. UUSSDD::1133--7788                      VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))
  5022.  
  5023.  
  5024.           ssppeecciiffiieedd lliinneess aarree ppaasssseedd aass  ssttaannddaarrdd  iinnppuutt  ttoo
  5025.           tthhaatt ccoommmmaanndd..  TThhee ""!!""  iinn tthhiiss uussaaggee mmuusstt bbee sseepp--
  5026.           aarraatteedd ffrroomm ccoommmmaanndd nnaammee bbyy aatt lleeaasstt  oonnee  wwhhiitteess--
  5027.           ppaaccee  cchhaarraacctteerr..   TThhee  ssppeecciiaall mmeeaanniinngg ooff tthhee ""!!""
  5028.           mmaayy bbee oovveerrrriiddddeenn bbyy eessccaappiinngg iitt wwiitthh aa  bbaacckkssllaasshh
  5029.           ((""\\"")) cchhaarraacctteerr..
  5030.  
  5031.           TThhee  wwqq vveerrssiioonn ooff tthhee wwrriittee ccoommmmaanndd wwiillll eexxiitt tthhee
  5032.           eeddiittoorr aafftteerr wwrriittiinngg tthhee ffiillee,,  iiff  tthheerree  aarree  nnoo
  5033.           ffuurrtthheerr ffiilleess ttoo eeddiitt..  AAppppeennddiinngg aa ""!!""  cchhaarraacctteerr
  5034.           ttoo tthhee ccoommmmaanndd nnaammee oorr eenntteerriinngg  ttwwoo  ""qquuiitt""  ccoomm--
  5035.           mmaannddss  ((ii..ee..   wwqq,, qquuiitt,, xxiitt oorr ZZZZ)) iinn aa rrooww)) wwiillll
  5036.           oovveerrrriiddee tthhiiss cchheecckk  aanndd  tthhee  eeddiittoorr  wwiillll  eexxiitt,,
  5037.           iiggnnoorriinngg  aannyy ffiilleess tthhaatt hhaavvee nnoott yyeett bbeeeenn eeddiitteedd..
  5038.  
  5039.           TThhee wwnn vveerrssiioonn ooff tthhee wwrriittee ccoommmmaanndd wwiillll  mmoovvee  ttoo
  5040.           tthhee  nneexxtt  ffiillee aafftteerr wwrriittiinngg tthhee ffiillee,, uunnlleessss tthhee
  5041.           wwrriittee ffaaiillss..
  5042.  
  5043.           Line:    Unchanged.
  5044.           Options: Affected by  the  rreeaaddoonnllyy  and  wwrriitteeaannyy
  5045.                    options.
  5046.  
  5047.      [[rraannggee]] xx[[iitt]][[!!]] [[ffiillee]]
  5048.           Write the file if it has been modified.  The spec-
  5049.           ified lines are written to file,, iiff tthhee  ffiillee  hhaass
  5050.           bbeeeenn mmooddiiffiieedd ssiinnccee tthhee llaasstt ccoommpplleettee wwrriittee ttoo aannyy
  5051.           ffiillee..  IIff nnoo rraannggee is specified, the  entire  file
  5052.           is written.
  5053.  
  5054.           The xxiitt command will exit the editor after writing
  5055.           the file, if there are no further files  to  edit.
  5056.           Appending  a "!""  cchhaarraacctteerr ttoo tthhee ccoommmmaanndd nnaammee oorr
  5057.           eenntteerriinngg ttwwoo ""qquuiitt"" ccoommmmaannddss ((ii..ee..  wwqq,, qquuiitt,,  xxiitt
  5058.           oorr  ZZZZ)) iinn aa rrooww)) wwiillll oovveerrrriiddee tthhiiss cchheecckk aanndd tthhee
  5059.           eeddiittoorr wwiillll eexxiitt,, iiggnnoorriinngg aannyy ffiilleess tthhaatt hhaavvee nnoott
  5060.           yyeett bbeeeenn eeddiitteedd..
  5061.  
  5062.           Line:    Unchanged.
  5063.           Options: Affected  by  the  rreeaaddoonnllyy  and wwrriitteeaannyy
  5064.                    options.
  5065.  
  5066.      [[rraannggee]] yyaa[[nnkk]] [[bbuuffffeerr]] [[ccoouunntt]]
  5067.           Copy the specified  lines  to  a  buffer.   If  no
  5068.           buffer is specified, the unnamed buffer is used.
  5069.  
  5070.           Line:    Unchanged.
  5071.           Options: None.
  5072.  
  5073.      [[lliinnee]] zz [[ttyyppee]] [[ccoouunntt]] [[ffllaaggss]]
  5074.           Adjust  the window.  If no type iiss ssppeecciiffiieedd,, tthheenn
  5075.           ccoouunntt lines following the specified line are  dis-
  5076.           played.   The  default  count  iiss tthhee vvaalluuee ooff tthhee
  5077.  
  5078.  
  5079.  
  5080.  
  5081.  
  5082.  
  5083.  
  5084.  
  5085.  
  5086.  
  5087. VVii//EExx RReeffeerreennccee ((EExx CCoommmmaannddss))                      UUSSDD::1133--7799
  5088.  
  5089.  
  5090.           wwiinnddooww ooppttiioonn..   TThhee  ttyyppee  aarrgguummeenntt  cchhaannggeess  tthhee
  5091.           ppoossiittiioonn  aatt wwhhiicchh lliinnee iiss ddiissppllaayyeedd oonn tthhee ssccrreeeenn
  5092.           bbyy cchhaannggiinngg tthhee nnuummbbeerr ooff lliinneess  ddiissppllaayyeedd  bbeeffoorree
  5093.           aanndd aafftteerr lliinnee..  TThhee ffoolllloowwiinngg ttyyppee cchhaarraacctteerrss mmaayy
  5094.           bbee uusseedd::
  5095.  
  5096.           -        Place the  line  at  the  bottom  of  the
  5097.                    screen.
  5098.           +        Place  the line at the top of the screen.
  5099.           .        Place the  line  in  the  middle  of  the
  5100.                    screen.
  5101.           ^        Write  out count lines starting count * 2
  5102.                    lines before line; the net effect of this
  5103.                    is that a "z^" command following a zz com-
  5104.                    mand writes the previous page.
  5105.           =        Center line on the screen with a line  of
  5106.                    hyphens  displayed immediately before and
  5107.                    after it.  The number  of  preceding  and
  5108.                    following  lines  of  text  displayed are
  5109.                    reduced to account for those lines.
  5110.  
  5111.           Line:    Set to the last line displayed, with  the
  5112.                    exception  of the type, where the current
  5113.                    line is set to the line specified by  the
  5114.                    command.
  5115.           Options: Affected by the ssccrroollll option.
  5116.  
  5117.      1188..  SSeett OOppttiioonnss
  5118.  
  5119.           There  are  a  large number of options that may be
  5120.      set (or unset) to change the editor's  behavior.   This
  5121.      section  describes the options, their abbreviations and
  5122.      their default values.
  5123.  
  5124.           In each entry below, the first  part  of  the  tag
  5125.      line  is  the  full name of the option, followed by any
  5126.      equivalent abbreviations.  (Regardless of the abbrevia-
  5127.      tions,  it  is only necessary to use the minimum number
  5128.      of characters necessary to distinguish an  abbreviation
  5129.      from  all  other  commands  for  it  to be accepted, in
  5130.      nneexx/nnvvii.  Historically, only  the  full  name  and  the
  5131.      official  abbreviations  were accepted by eexx/vvii.  Using
  5132.      full names in  your  startup  files  and  environmental
  5133.      variables  will probably make them more portable.)  The
  5134.      part in square brackets is the  default  value  of  the
  5135.      option.  Most of the options are boolean, i.e. they are
  5136.      either on or off, and do not have an associated  value.
  5137.  
  5138.           Options apply to both eexx and vvii modes, unless oth-
  5139.      erwise specified.
  5140.  
  5141.           With a few exceptions, all  options  are  settable
  5142.      per screen, i.e. the ttaaggss option can be set differently
  5143.  
  5144.  
  5145.  
  5146.  
  5147.  
  5148.  
  5149.  
  5150.  
  5151.  
  5152.  
  5153. UUSSDD::1133--8800                          VVii//EExx RReeffeerreennccee ((OOppttiioonnss))
  5154.  
  5155.  
  5156.      in each screen.  The exceptions are the ccoolluummnnss, lliinneess,
  5157.      sseeccuurree  and tteerrmm options.  Changing these options modi-
  5158.      fies the respective information for all screens.
  5159.  
  5160.           For information on modifying  the  options  or  to
  5161.      display  the  options and their current values, see the
  5162.      "set" command in the section entitled "EExx CCoommmmaannddss".
  5163.  
  5164.      aallttwweerraassee [[ooffff]]
  5165.           VVii only.  Change how vvii  does  word  erase  during
  5166.           text input.  When this option is set, text is bro-
  5167.           ken up into three classes: alphabetic, numeric and
  5168.           underscore  characters, other nonblank characters,
  5169.           and blank characters.  Changing from one class  to
  5170.           another marks the end of a word.  In addition, the
  5171.           class of the first  character  erased  is  ignored
  5172.           (which is exactly what you want when erasing path-
  5173.           name components).
  5174.  
  5175.      aauuttooiinnddeenntt,, aaii [[ooffff]]
  5176.           If this option is set, whenever you create  a  new
  5177.           line  (using  the vvii AA, aa, CC, cc, II, ii, OO, oo, RR, rr,
  5178.           SS, and ss commands, or the eexx aappppeenndd,  cchhaannggee,  and
  5179.           iinnsseerrtt  commands)  the  new  line is automatically
  5180.           indented to align the cursor with the  first  non-
  5181.           blank character of the line from which you created
  5182.           it.  Lines are indented using  tab  characters  to
  5183.           the  extent  possible  (based  on the value of the
  5184.           ttaabbssttoopp option) and then using space characters as
  5185.           necessary.   For  commands inserting text into the
  5186.           middle of a line,  any  blank  characters  to  the
  5187.           right  of  the cursor are discarded, and the first
  5188.           nonblank character to the right of the  cursor  is
  5189.           aligned as described above.
  5190.  
  5191.           The indent characters are themselves somewhat spe-
  5192.           cial.  If you do not enter more characters on  the
  5193.           new  line before moving to another line, or enter-
  5194.           ing <escape>,, tthhee iinnddeenntt cchhaarraacctteerr wwiillll bbee ddeelleetteedd
  5195.           aanndd  tthhee  lliinnee wwiillll bbee eemmppttyy..  FFoorr eexxaammppllee,, iiff yyoouu
  5196.           eenntteerr <<ccaarrrriiaaggee--rreettuurrnn>> twice in  succession,  the
  5197.           line  created  by the first <carriage-return> wwiillll
  5198.           nnoott hhaavvee aannyy cchhaarraacctteerrss iinn iitt,, rreeggaarrddlleessss  ooff  tthhee
  5199.           iinnddeennttaattiioonn ooff tthhee pprreevviioouuss oorr ssuubbsseeqquueenntt lliinnee..
  5200.  
  5201.           IInnddeenntt  cchhaarraacctteerrss  aallssoo  rreeqquuiirree  tthhaatt  yyoouu eenntteerr
  5202.           aaddddiittiioonnaall eerraassee cchhaarraacctteerrss ttoo ddeelleettee  tthheemm..   FFoorr
  5203.           eexxaammppllee,,  iiff yyoouu hhaavvee aann iinnddeenntteedd lliinnee,, ccoonnttaaiinniinngg
  5204.           oonnllyy bbllaannkkss,, tthhee ffiirrsstt <<wwoorrdd--eerraassee>> character  you
  5205.           enter  will  erase up to end of the indent charac-
  5206.           ters, and the second will erase back to the begin-
  5207.           ning  of  the line.  (Historically, only the <con-
  5208.           trol-D> kkeeyy wwoouulldd  eerraassee  tthhee  iinnddeenntt  cchhaarraacctteerrss..
  5209.  
  5210.  
  5211.  
  5212.  
  5213.  
  5214.  
  5215.  
  5216.  
  5217.  
  5218.  
  5219. VVii//EExx RReeffeerreennccee ((OOppttiioonnss))                          UUSSDD::1133--8811
  5220.  
  5221.  
  5222.           BBootthh  tthhee <<ccoonnttrrooll--DD>> key and the usual erase keys
  5223.           work in nnvvii.)  In addition, if the cursor is posi-
  5224.           tioned  at  the  end of the indent characters, the
  5225.           keys "0<control-D>"" wwiillll eerraassee aallll ooff  tthhee  iinnddeenntt
  5226.           cchhaarraacctteerrss  ffoorr  tthhee  ccuurrrreenntt  lliinnee,, rreesseettttiinngg tthhee
  5227.           iinnddeennttaattiioonn  lleevveell  ttoo  00..   SSiimmiillaarrllyy,,  tthhee  kkeeyyss
  5228.           ""^^<<ccoonnttrrooll--DD>>"  will erase all of the indent char-
  5229.           acters for the current line, leaving the  indenta-
  5230.           tion level for future created lines unaffected.
  5231.  
  5232.           Finally,  if  the  aauuttooiinnddeenntt option is set, the SS
  5233.           and cccc commands change from the first nonblank  of
  5234.           the  line  to the end of the line, instead of from
  5235.           the beginning of the line to the end of the  line.
  5236.  
  5237.      aauuttoopprriinntt,, aapp [[ooffff]]
  5238.           EExx  only.   Cause the current line to be automati-
  5239.           cally displayed after the eexx commands <<, >>,  ccooppyy,
  5240.           ddeelleettee,  jjooiinn, mmoovvee, ppuutt, tt, UUnnddoo, and uunnddoo.  This
  5241.           automatic display is suppressed during gglloobbaall  and
  5242.           vv  commands,  and  for  any command where optional
  5243.           flags are used to explicitly display the line.
  5244.  
  5245.      aauuttoowwrriittee,, aaww [[ooffff]]
  5246.           If this option is set, the vvii !!, ^^^^, ^^]] and  <<ccoonn--
  5247.           ttrrooll--ZZ>>  commands,  and the eexx eeddiitt, nneexxtt, rreewwiinndd,
  5248.           ssttoopp, ssuussppeenndd, ttaagg, ttaaggppoopp,  and  ttaaggttoopp  commands
  5249.           automatically  write  the current file back to the
  5250.           current file name if it has been modified since it
  5251.           was last written.  If the write fails, the command
  5252.           fails and goes no further.
  5253.  
  5254.           Appending the optional force  flag  character  "!""
  5255.           ttoo  tthhee  eexx  ccoommmmaannddss nneexxtt,, rreewwiinndd,, ssttoopp,, ssuussppeenndd,,
  5256.           ttaagg,, ttaaggppoopp,, aanndd ttaaggttoopp ssttooppss tthhee aauuttoommaattiicc  wwrriittee
  5257.           ffrroomm bbeeiinngg aatttteemmpptteedd..
  5258.  
  5259.           ((HHiissttoorriiccaallllyy,,   tthhee   nneexxtt  ccoommmmaanndd  iiggnnoorreedd  tthhee
  5260.           ooppttiioonnaall ffoorrccee ffllaagg..))  NNoottee,, tthhee eexx ccoommmmaannddss eeddiitt,,
  5261.           qquuiitt,,  sshheellll,,  aanndd  xxiitt  aarree  _n_o_t  aaffffeecctteedd bbyy tthhee
  5262.           aauuttoowwrriittee ooppttiioonn..
  5263.  
  5264.           TThhee aauuttoowwrriittee ooppttiioonn iiss iiggnnoorreedd  iiff  tthhee  ffiillee  iiss
  5265.           ccoonnssiiddeerreedd rreeaadd--oonnllyy ffoorr aannyy rreeaassoonn..
  5266.  
  5267.      bbaacckkuupp [[""""]]
  5268.           If  this  option  is  set, it specifies a pathname
  5269.           used as a backup file, and,  whenever  a  file  is
  5270.           written, the file's current contents are copied to
  5271.           it.  The pathname is "#"",, ""%%" and "!""  eexxppaannddeedd..
  5272.  
  5273.           IIff tthhee ffiirrsstt cchhaarraacctteerr ooff tthhee ppaatthhnnaammee iiss  ""NN",  a
  5274.           version  number  is  appended to the pathname (and
  5275.  
  5276.  
  5277.  
  5278.  
  5279.  
  5280.  
  5281.  
  5282.  
  5283.  
  5284.  
  5285. UUSSDD::1133--8822                          VVii//EExx RReeffeerreennccee ((OOppttiioonnss))
  5286.  
  5287.  
  5288.           the "N"" cchhaarraacctteerr  iiss  tthheenn  ddiissccaarrddeedd))..   VVeerrssiioonn
  5289.           nnuummbbeerrss  aarree  aallwwaayyss  iinnccrreemmeenntteedd,, aanndd eeaacchh bbaacckkuupp
  5290.           ffiillee wwiillll hhaavvee aa vveerrssiioonn nnuummbbeerr oonnee  ggrreeaatteerr  tthhaann
  5291.           tthhee  hhiigghheesstt vveerrssiioonn nnuummbbeerr ccuurrrreennttllyy ffoouunndd iinn tthhee
  5292.           ddiirreeccttoorryy..
  5293.  
  5294.           BBaacckkuupp ffiilleess mmuusstt bbee rreegguullaarr ffiilleess,, oowwnneedd  bbyy  tthhee
  5295.           rreeaall  uusseerr  IIDD ooff tthhee uusseerr rruunnnniinngg tthhee eeddiittoorr,, aanndd
  5296.           nnoott aacccceessssiibbllee bbyy aannyy ootthheerr uusseerr..
  5297.  
  5298.      bbeeaauuttiiffyy,, bbff [[ooffff]]
  5299.           If this option is set, all control characters that
  5300.           are  not  currently  being  specially interpreted,
  5301.           other than <tab>,, <<nneewwlliinnee>>, and <form-feed>,,  aarree
  5302.           ddiissccaarrddeedd ffrroomm ccoommmmaannddss rreeaadd iinn bbyy eexx ffrroomm ccoommmmaanndd
  5303.           ffiilleess,, aanndd ffrroomm iinnppuutt tteexxtt eenntteerreedd ttoo  vvii  ((eeiitthheerr
  5304.           iinnttoo tthhee ffiillee oorr ttoo tthhee ccoolloonn ccoommmmaanndd lliinnee))..  TTeexxtt
  5305.           ffiilleess rreeaadd bbyy eexx//vvii aarree _n_o_t aaffffeecctteedd bbyy tthhee  bbeeaauu--
  5306.           ttiiffyy ooppttiioonn..
  5307.  
  5308.      ccddppaatthh [[eennvviirroonnmmeenntt vvaarriiaabbllee CCDDPPAATTHH,, oorr ccuurrrreenntt ddiirreecc--
  5309.           ttoorryy]]
  5310.           This option is used to specify a  colon  separated
  5311.           list  of  directories  which are used as path pre-
  5312.           fixes for any relative path names  used  as  argu-
  5313.           ments  for  the  ccdd  command.   The  value of this
  5314.           option defaults to the value of the  environmental
  5315.           variable  CDPATH  iiff  iitt  iiss sseett,, ootthheerrwwiissee ttoo tthhee
  5316.           ccuurrrreenntt ddiirreeccttoorryy..   FFoorr  ccoommppaattiibbiilliittyy  wwiitthh  tthhee
  5317.           PPOOSSIIXX  11000033..22 sshheellll,, tthhee ccdd ccoommmmaanndd ddooeess _n_o_t cchheecckk
  5318.           tthhee ccuurrrreenntt ddiirreeccttoorryy aass aa ppaatthh pprreeffiixx  ffoorr  rreellaa--
  5319.           ttiivvee ppaatthh nnaammeess uunnlleessss iitt iiss eexxpplliicciittllyy ssppeecciiffiieedd..
  5320.           IItt mmaayy bbee ssoo ssppeecciiffiieedd bbyy eenntteerriinngg aann eemmppttyy ssttrriinngg
  5321.           oorr  aa  "".._"   _c_h_a_r_a_c_t_e_r _i_n_t_o _t_h_e _C_D_P_A_T_H vvaarriiaabbllee oorr
  5322.           tthhee ooppttiioonn vvaalluuee..
  5323.  
  5324.      cceeddiitt [[nnoo ddeeffaauulltt]]
  5325.           This option adds the ability  to  edit  the  colon
  5326.           command-line  history.   This  option  is set to a
  5327.           string.  Whenever  the  first  character  of  that
  5328.           string  is  entered on the colon command line, you
  5329.           will enter a normal editing  window  on  the  col-
  5330.           lected  commands  that  you've  entered  on the vvii
  5331.           colon command-line.  You may  then  modify  and/or
  5332.           execute  the commands.  All normal text editing is
  5333.           available, except that you cannot use  <<ccoonnttrrooll--WW>>
  5334.           to  switch  to  an  alternate  screen.  Entering a
  5335.           <<ccaarrrriiaaggee--rreettuurrnn>> will execute the current line of
  5336.           the  screen window as an ex command in the context
  5337.           of the screen from which  you  created  the  colon
  5338.           command-line  screen,  and you will then return to
  5339.           that screen.
  5340.  
  5341.  
  5342.  
  5343.  
  5344.  
  5345.  
  5346.  
  5347.  
  5348.  
  5349.  
  5350.  
  5351. VVii//EExx RReeffeerreennccee ((OOppttiioonnss))                          UUSSDD::1133--8833
  5352.  
  5353.  
  5354.           Because of vvii's parsing rules, it can be difficult
  5355.           to  set  the  colon command-line edit character to
  5356.           the <escape> cchhaarraacctteerr..  TToo sseett  iitt  ttoo  <<eessccaappee>>,
  5357.           use "set cedit=<literal-next><escape>""..
  5358.  
  5359.           IIff  tthhee cceeddiitt eeddiitt ooppttiioonn iiss sseett ttoo tthhee ssaammee cchhaarr--
  5360.           aacctteerr aass tthhee ffiilleecc eeddiitt ooppttiioonn,,  vvii  wwiillll  ppeerrffoorrmm
  5361.           ccoolloonn  ccoommmmaanndd--lliinnee  eeddiittiinngg  iiff  tthhee cchhaarraacctteerr iiss
  5362.           eenntteerreedd aass tthhee ffiirrsstt cchhaarraacctteerr ooff tthhee lliinnee,, ootthheerr--
  5363.           wwiissee,, vvii wwiillll ppeerrffoorrmm ffiillee nnaammee eexxppaannssiioonn..
  5364.  
  5365.      ccoolluummnnss,, ccoo [[8800]]
  5366.           The number of columns in the screen.  Setting this
  5367.           option causes eexx/vvii to set (or reset) the environ-
  5368.           mental variable COLUMNS..  SSeeee tthhee sseeccttiioonn eennttiittlleedd
  5369.           ""SSiizziinngg tthhee SSccrreeeenn"" mmoorree iinnffoorrmmaattiioonn..
  5370.  
  5371.      ccoommmmeenntt [[ooffff]]
  5372.           VVii only.  If the first non-empty line of the  file
  5373.           begins  with  the  string  "#"",, ""//**" or "//"",, tthhiiss
  5374.           ooppttiioonn ccaauusseess vvii ttoo sskkiipp ttoo tthhee eenndd ooff tthhaatt sshheellll,,
  5375.           CC oorr CC++++ ccoommmmeenntt ((pprroobbaabbllyy aa tteerrrriibbllyy bboorriinngg lleeggaall
  5376.           nnoottiiccee)) bbeeffoorree ddiissppllaayyiinngg tthhee ffiillee..
  5377.  
  5378.      ddiirreeccttoorryy,, ddiirr [[eennvviirroonnmmeenntt vvaarriiaabbllee TTMMPPDDIIRR,, oorr //ttmmpp]]
  5379.           The directory where temporary files  are  created.
  5380.           The  environmental  variable TMPDIR iiss uusseedd aass tthhee
  5381.           ddeeffaauulltt vvaalluuee iiff  iitt  eexxiissttss,,  ootthheerrwwiissee  //ttmmpp  is
  5382.           used.
  5383.  
  5384.      eeddccoommppaattiibbllee,, eedd [[ooffff]]
  5385.           Remember the values of the "c" and "g" suffixes to
  5386.           the ssuubbssttiittuuttee commands, instead  of  initializing
  5387.           them  as  unset  for each new command.  Specifying
  5388.           pattern and replacement strings to the  ssuubbssttiittuuttee
  5389.           command unsets the "c" and "g" suffixes as well.
  5390.  
  5391.      eessccaappeettiimmee [[11]]
  5392.           The  10th's  of  a second eexx/vvii waits for a subse-
  5393.           quent key to complete an <escape> kkeeyy mmaappppiinngg..
  5394.  
  5395.      eerrrroorrbbeellllss,, eebb [[ooffff]]
  5396.           EExx only.  EExx error messages are normally presented
  5397.           in inverse video.  If that is not possible for the
  5398.           terminal, setting this option  causes  error  mes-
  5399.           sages  to  be  announced  by  ringing the terminal
  5400.           bell.
  5401.  
  5402.      eexxrrcc,, eexx [[ooffff]]
  5403.           If this option is turned on in the EXINIT environ-
  5404.           ment  variables,  or  the  system or $HOME startup
  5405.           files, the local startup files  are  read,  unless
  5406.           they  are  the same as the system or $HOME startup
  5407.  
  5408.  
  5409.  
  5410.  
  5411.  
  5412.  
  5413.  
  5414.  
  5415.  
  5416.  
  5417. UUSSDD::1133--8844                          VVii//EExx RReeffeerreennccee ((OOppttiioonnss))
  5418.  
  5419.  
  5420.           files or fail  to  pass  the  standard  permission
  5421.           checks.   See the section entitled "SSttaarrttuupp IInnffoorr--
  5422.           mmaattiioonn" for more information.
  5423.  
  5424.      eexxtteennddeedd [[ooffff]]
  5425.           This option causes all regular expressions  to  be
  5426.           treated  as  POSIX 1003.2 Extended Regular Expres-
  5427.           sions (which  are  similar  to  historic  _e_g_r_e_p(1)
  5428.           style expressions).
  5429.  
  5430.      ffiilleecc [[nnoo ddeeffaauulltt]]
  5431.           This option adds the ability to do shell expansion
  5432.           when entering input on  the  colon  command  line.
  5433.           This  option  is  set  to  a string.  Whenever the
  5434.           first character of that string is entered  on  the
  5435.           colon  command  line, the <blank> delimited string
  5436.           immediately before the cursor is expanded as if it
  5437.           were  followed  by  a  *  cchhaarraacctteerr,, aanndd ffiillee nnaammee
  5438.           eexxppaannssiioonn ffoorr tthhee eexx eeddiitt ccoommmmaanndd wwaass ddoonnee..  IIff nnoo
  5439.           mmaattcchh  iiss  ffoouunndd,,  tthhee  ssccrreeeenn iiss ffllaasshheedd aanndd tteexxtt
  5440.           iinnppuutt rreessuummeedd..  IIff aa ssiinnggllee  mmaattcchh  rreessuullttss,,  tthhaatt
  5441.           mmaattcchh rreeppllaacceess tthhee eexxppaannddeedd tteexxtt..  IInn aaddddiittiioonn,, iiff
  5442.           tthhee ssiinnggllee mmaattcchh iiss ffoorr aa ddiirreeccttoorryy,, aa // cchhaarraacctteerr
  5443.           iiss  aappppeennddeedd  aanndd ffiillee ccoommpplleettiioonn iiss rreeppeeaatteedd..  IIff
  5444.           mmoorree tthhaann aa ssiinnggllee mmaattcchh rreessuullttss,, aannyy uunniiqquuee  pprree--
  5445.           ffiixx  sshhaarreedd  bbyy  tthhee mmaattcchheess rreeppllaacceess tthhee eexxppaannddeedd
  5446.           tteexxtt,, tthhee mmaattcchheess aarree ddiissppllaayyeedd,,  aanndd  tteexxtt  iinnppuutt
  5447.           rreessuummeedd..
  5448.  
  5449.           BBeeccaauussee ooff vvii''ss ppaarrssiinngg rruulleess,, iitt ccaann bbee ddiiffffiiccuulltt
  5450.           ttoo sseett tthhee ppaatthh ccoommpplleettiioonn cchhaarraacctteerr ttoo  ttwwoo  ccoomm--
  5451.           mmaanndd  vvaalluueess,,  <<eessccaappee>>  aanndd  <<ttaabb>>..  TToo sseett iitt ttoo
  5452.           <<eessccaappee>>,, uussee ""sseett  ffiilleecc==<<lliitteerraall--nneexxtt>><<eessccaappee>>""..
  5453.           TToo sseett iitt ttoo <<ttaabb>>,, uussee ""sseett ffiilleecc==\\<<ttaabb>>""..
  5454.  
  5455.           IIff  tthhee cceeddiitt eeddiitt ooppttiioonn iiss sseett ttoo tthhee ssaammee cchhaarr--
  5456.           aacctteerr aass tthhee ffiilleecc eeddiitt ooppttiioonn,,  vvii  wwiillll  ppeerrffoorrmm
  5457.           ccoolloonn  ccoommmmaanndd--lliinnee  eeddiittiinngg  iiff  tthhee cchhaarraacctteerr iiss
  5458.           eenntteerreedd aass tthhee ffiirrsstt cchhaarraacctteerr ooff tthhee lliinnee,, ootthheerr--
  5459.           wwiissee,, vvii wwiillll ppeerrffoorrmm ffiillee nnaammee eexxppaannssiioonn..
  5460.  
  5461.      ffllaasshh [[oonn]]
  5462.           This  option causes the screen to flash instead of
  5463.           beeping the keyboard, on error,  if  the  terminal
  5464.           has the capability.
  5465.  
  5466.      hhaarrddttaabbss,, hhtt [[88]]
  5467.           This  option  defines the spacing between hardware
  5468.           tab settings, i.e.  the tab expansion done by  the
  5469.           operating  system  and/or the terminal itself.  As
  5470.           nneexx/nnvvii never writes <tab> cchhaarraacctteerrss ttoo tthhee  tteerr--
  5471.           mmiinnaall,,  uunnlliikkee  hhiissttoorriicc  vveerrssiioonnss  ooff eexx//vvii,, tthhiiss
  5472.           ooppttiioonn ddooeess nnoott ccuurrrreennttllyy hhaavvee aannyy aaffffeecctt..
  5473.  
  5474.  
  5475.  
  5476.  
  5477.  
  5478.  
  5479.  
  5480.  
  5481.  
  5482.  
  5483. VVii//EExx RReeffeerreennccee ((OOppttiioonnss))                          UUSSDD::1133--8855
  5484.  
  5485.  
  5486.      iicclloowweerr [[ooffff]]
  5487.           The iicclloowweerr edit option makes all Regular  Expres-
  5488.           sions  case-insensitive,  as long as an upper-case
  5489.           letter does not appear in the search string.
  5490.  
  5491.      iiggnnoorreeccaassee,, iicc [[ooffff]]
  5492.           This option causes regular expressions, both in eexx
  5493.           commands  and  in  searches,  to be evaluated in a
  5494.           case-insensitive manner.
  5495.  
  5496.      kkeeyyttiimmee [[66]]
  5497.           The 10th's of a second eexx/vvii waits  for  a  subse-
  5498.           quent key to complete a key mapping.
  5499.  
  5500.      lleeffttrriigghhtt [[ooffff]]
  5501.           VVii  only.   This  option  causes  the screen to be
  5502.           scrolled left-right to view lines longer than  the
  5503.           screen,  instead  of  the  traditional  vvii  screen
  5504.           interface which folds long lines at the right-hand
  5505.           margin of the terminal.
  5506.  
  5507.      lliinneess,, llii [[2244]]
  5508.           VVii only.  The number of lines in the screen.  Set-
  5509.           ting this option causes eexx/vvii to  set  (or  reset)
  5510.           the environmental variable LINES..  SSeeee tthhee sseeccttiioonn
  5511.           eennttiittlleedd ""SSiizziinngg tthhee SSccrreeeenn"" ffoorr mmoorree iinnffoorrmmaattiioonn..
  5512.  
  5513.      lliisspp [[ooffff]]
  5514.           VVii  only.  This option changes the behavior of the
  5515.           vvii ((, )), {{, }}, [[[[ and ]]]]  commands  to  match  the
  5516.           Lisp  language.   Also,  the  aauuttooiinnddeenntt  option's
  5517.           behavior is changed to be appropriate for Lisp.
  5518.  
  5519.           _T_h_i_s _o_p_t_i_o_n _i_s _n_o_t _y_e_t _i_m_p_l_e_m_e_n_t_e_d_.
  5520.  
  5521.      lliisstt [[ooffff]]
  5522.           This option causes lines to  be  displayed  in  an
  5523.           unambiguous  fashion.  Specifically, tabs are dis-
  5524.           played as control characters, i.e.  "^I"",, aanndd  tthhee
  5525.           eennddss ooff lliinneess aarree mmaarrkkeedd wwiitthh aa ""$$" character.
  5526.  
  5527.      lloocckk [[oonn]]
  5528.           This option causes the editor to attempt to get an
  5529.           exclusive lock on any file being edited,  read  or
  5530.           written.  Reading or writing a file that cannot be
  5531.           locked produces a warning message,  but  no  other
  5532.           effect.   Editing  a  file  that  cannot be locked
  5533.           results in a read only edit  session,  as  if  the
  5534.           rreeaaddoonnllyy edit option were set.
  5535.  
  5536.      mmaaggiicc [[oonn]]
  5537.           This  option  is on by default.  Turning the mmaaggiicc
  5538.           option   off   causes   all   regular   expression
  5539.  
  5540.  
  5541.  
  5542.  
  5543.  
  5544.  
  5545.  
  5546.  
  5547.  
  5548.  
  5549. UUSSDD::1133--8866                          VVii//EExx RReeffeerreennccee ((OOppttiioonnss))
  5550.  
  5551.  
  5552.           characters  except  for "^"" aanndd ""$$", to be treated
  5553.           as ordinary characters.  To  re-enable  characters
  5554.           individually,  when  the mmaaggiicc option is off, pre-
  5555.           cede them with a backslash "\"" cchhaarraacctteerr..  SSeeee tthhee
  5556.           sseeccttiioonn eennttiittlleedd ""RReegguullaarr EExxpprreessssiioonnss aanndd RReeppllaaccee--
  5557.           mmeenntt SSttrriinnggss"" ffoorr mmoorree iinnffoorrmmaattiioonn..
  5558.  
  5559.      mmaattcchhttiimmee [[77]]
  5560.           VVii only.  The 10th's of a second vvii pauses on  the
  5561.           matching  character  when  the sshhoowwmmaattcchh option is
  5562.           set.
  5563.  
  5564.      mmeessgg [[oonn]]
  5565.           This option allows  other  users  to  contact  you
  5566.           using  the  _t_a_l_k(1)  and _w_r_i_t_e(1) utilities, while
  5567.           you are editing.  EExx/vvii does not turn message  on,
  5568.           i.e.  if  messages were turned off when the editor
  5569.           was invoked, they  will  stay  turned  off.   This
  5570.           option  only  permits you to disallow messages for
  5571.           the edit session.  See  the  _m_e_s_g(1)  utility  for
  5572.           more information.
  5573.  
  5574.      mmssggccaatt [[..//]]
  5575.           This  option  selects a message catalog to be used
  5576.           to display error and informational messages  in  a
  5577.           specified  language.   If the value of this option
  5578.           ends with a '/', it is treated as the  name  of  a
  5579.           directory   that   contains   a   message  catalog
  5580.           "vi_XXXX"",, wwhheerree ""XXXXXXXX" is the value of  the  LANG
  5581.           eennvviirroonnmmeennttaall  vvaarriiaabbllee,, iiff iitt''ss sseett,, oorr tthhee vvaalluuee
  5582.           ooff tthhee LLCC__MMEESSSSAAGGEESS environmental variable if  it's
  5583.           not.   If neither of those environmental variables
  5584.           are set, or if the option doesn't end  in  a  '/',
  5585.           the option is treated as the full path name of the
  5586.           message catalog to use.
  5587.  
  5588.           If any messages are missing from the catalog,  the
  5589.           backup text (English) is used instead.
  5590.  
  5591.           See the distribution file catalog/README ffoorr aaddddii--
  5592.           ttiioonnaall iinnffoorrmmaattiioonn oonn bbuuiillddiinngg aanndd iinnssttaalllliinngg mmeess--
  5593.           ssaaggee ccaattaallooggss..
  5594.  
  5595.      mmooddeelliinneess,, mmooddeelliinnee [[ooffff]]
  5596.           If the mmooddeelliinneess option is set, eexx/vvii has histori-
  5597.           cally scanned the first and  last  five  lines  of
  5598.           each  file  as it is read for editing, looking for
  5599.           any eexx commands that have  been  placed  in  those
  5600.           lines.   After  the  startup  information has been
  5601.           processed, and before the user starts editing  the
  5602.           file,  any  commands embedded in the file are exe-
  5603.           cuted.
  5604.  
  5605.  
  5606.  
  5607.  
  5608.  
  5609.  
  5610.  
  5611.  
  5612.  
  5613.  
  5614.  
  5615. VVii//EExx RReeffeerreennccee ((OOppttiioonnss))                          UUSSDD::1133--8877
  5616.  
  5617.  
  5618.           Commands were recognized by the letters "e" or "v"
  5619.           followed by "x" or "i", at the beginning of a line
  5620.           or following a tab or space  character,  and  fol-
  5621.           lowed by a ":", an eexx command, and another ":".
  5622.  
  5623.           This  option is a security problem of immense pro-
  5624.           portions, and should not be used under any circum-
  5625.           stances.
  5626.  
  5627.           _T_h_i_s _o_p_t_i_o_n _w_i_l_l _n_e_v_e_r _b_e _i_m_p_l_e_m_e_n_t_e_d_.
  5628.  
  5629.      nnoopprriinntt [[""""]]
  5630.           Characters  that  are  never  handled as printable
  5631.           characters.  By default, the  C  library  function
  5632.           _i_s_p_r_i_n_t(3)  is used to determine if a character is
  5633.           printable or not.  This edit option overrides that
  5634.           decision.
  5635.  
  5636.      nnuummbbeerr,, nnuu [[ooffff]]
  5637.           Precede  each line displayed with its current line
  5638.           number.
  5639.  
  5640.      ooccttaall [[ooffff]]
  5641.           Display  unknown  characters  as   octal   numbers
  5642.           ("\###"")),,   iinnsstteeaadd  ooff  tthhee  ddeeffaauulltt  hheexxaaddeecciimmaall
  5643.           ((""\\xx####").
  5644.  
  5645.      ooppeenn [[oonn]]
  5646.           EExx only.  If this option is not set, the ooppeenn  and
  5647.           vviissuuaall commands are disallowed.
  5648.  
  5649.      ooppttiimmiizzee,, oopptt [[oonn]]
  5650.           VVii  only.  Throughput of text is expedited by set-
  5651.           ting the terminal not  to  do  automatic  carriage
  5652.           returns when printing more than one (logical) line
  5653.           of output, greatly speeding  output  on  terminals
  5654.           without addressable cursors when text with leading
  5655.           white space is printed.
  5656.  
  5657.           _T_h_i_s _o_p_t_i_o_n _i_s _n_o_t _y_e_t _i_m_p_l_e_m_e_n_t_e_d_.
  5658.  
  5659.      ppaarraaggrraapphhss,, ppaarraa [[IIPPLLPPPPPPQQPPPP LLIIppppllppiippbbpp]]
  5660.           VVii only.  Define additional  paragraph  boundaries
  5661.           for  the  {{  and  }}  commands.   The value of this
  5662.           option must be a character  string  consisting  of
  5663.           zero or more character pairs.
  5664.  
  5665.           In  the  text  to  be edited, the character string
  5666.           <newline>.<char-pair>,, ((wwhheerree <<cchhaarr--ppaaiirr>>  is  one
  5667.           of  the  character  pairs  in  the option's value)
  5668.           defines a paragraph boundary.  For example, if the
  5669.           option  were  set to LaA<space>##,, tthheenn aallll ooff tthhee
  5670.           ffoolllloowwiinngg aaddddiittiioonnaall ppaarraaggrraapphh bboouunnddaarriieess wwoouulldd bbee
  5671.  
  5672.  
  5673.  
  5674.  
  5675.  
  5676.  
  5677.  
  5678.  
  5679.  
  5680.  
  5681. UUSSDD::1133--8888                          VVii//EExx RReeffeerreennccee ((OOppttiioonnss))
  5682.  
  5683.  
  5684.           rreeccooggnniizzeedd::
  5685.  
  5686.  
  5687.               <<nneewwlliinnee>>..LLaa
  5688.               <<nneewwlliinnee>>..AA<<ssppaaccee>>
  5689.               <<nneewwlliinnee>>..####
  5690.  
  5691.  
  5692.      ppaatthh [[]]
  5693.           The   path   option  can  be  used  to  specify  a
  5694.           <colon>-separated list of paths,  similar  to  the
  5695.           PATH  eennvviirroonnmmeenntt vvaarriiaabbllee iinn tthhee sshheellllss..  IIff tthhiiss
  5696.           ooppttiioonn iiss sseett,, tthhee nnaammee ooff tthhee ffiillee ttoo  bbee  eeddiitteedd
  5697.           iiss  nnoott  aann aabbssoolluuttee ppaatthhnnaammee,, tthhee ffiirrsstt ccoommppoonneenntt
  5698.           ooff tthhee ffiilleennaammee iiss nnoott "".."  or ".."",, aanndd tthhee  ffiillee
  5699.           ttoo  bbee  eeddiitteedd ddooeessnn''tt eexxiisstt iinn tthhee ccuurrrreenntt ddiirreecc--
  5700.           ttoorryy,, tthhee eelleemmeennttss ooff tthhee ppaatthh ooppttiioonn aarree  sseeqquueenn--
  5701.           ttiiaallllyy  sseeaarrcchheedd ffoorr aa ffiillee ooff tthhee ssppeecciiffiieedd nnaammee..
  5702.           IIff ssuucchh aa ffiillee iiss ffoouunndd,, iitt iiss eeddiitteedd..
  5703.  
  5704.      pprriinntt [[""""]]
  5705.           Characters that are always  handled  as  printable
  5706.           characters.   By  default,  the C library function
  5707.           _i_s_p_r_i_n_t(3) is used to determine if a character  is
  5708.           printable or not.  This edit option overrides that
  5709.           decision.
  5710.  
  5711.      pprroommpptt [[oonn]]
  5712.           EExx only.  This option causes eexx to prompt for com-
  5713.           mand  input  with  a ":"" cchhaarraacctteerr;; wwhheenn iitt iiss nnoott
  5714.           sseett,, nnoo pprroommpptt iiss ddiissppllaayyeedd..
  5715.  
  5716.      rreeaaddoonnllyy,, rroo [[ooffff]]
  5717.           This option causes a force flag to be required  to
  5718.           attempt to write the file.  Setting this option is
  5719.           equivalent to using the --RR command line option, or
  5720.           executing the vvii program using the name vviieeww.
  5721.  
  5722.           The  rreeaaddoonnllyy  edit  option is not usually persis-
  5723.           tent, like other edit options.  If the --RR  command
  5724.           line option is set, vvii is executed as vviieeww, or the
  5725.           rreeaaddoonnllyy edit option is explicitly set, all  files
  5726.           edited  in the screen will be marked readonly, and
  5727.           the force flag will be  required  to  write  them.
  5728.           However,  if none of these conditions are true, or
  5729.           the rreeaaddoonnllyy edit option is explicitly unset, then
  5730.           the  rreeaaddoonnllyy edit option will toggle based on the
  5731.           write permissions  of  the  file  currently  being
  5732.           edited  as  of  when  it  is  loaded into the edit
  5733.           buffer.  In other words, the rreeaaddoonnllyy edit  option
  5734.           will  be  set if the current file lacks write per-
  5735.           missions, and will not be  set  if  the  user  has
  5736.           write permissions for the file.
  5737.  
  5738.  
  5739.  
  5740.  
  5741.  
  5742.  
  5743.  
  5744.  
  5745.  
  5746.  
  5747. VVii//EExx RReeffeerreennccee ((OOppttiioonnss))                          UUSSDD::1133--8899
  5748.  
  5749.  
  5750.      rreeccddiirr [[//vvaarr//ttmmpp//vvii..rreeccoovveerr]]
  5751.           The directory where recovery files are stored.
  5752.  
  5753.           If  you  change the value of rreeccddiirr, be careful to
  5754.           choose a directory whose contents  are  not  regu-
  5755.           larly deleted.  Bad choices include directories in
  5756.           memory based filesystems, or /tmp,,  oonn  mmoosstt  ssyyss--
  5757.           tteemmss,,  aass  tthheeiirr  ccoonntteennttss  aarree  rreemmoovveedd  wwhheenn tthhee
  5758.           mmaacchhiinnee iiss rreebbooootteedd..
  5759.  
  5760.           PPuubblliicc ddiirreeccttoorriieess lliikkee //uussrr//ttmmpp and /var/tmp  aarree
  5761.           uussuuaallllyy  ssaaffee,,  aalltthhoouugghh  ssoommee  ssiitteess ppeerriiooddiiccaallllyy
  5762.           pprruunnee oolldd ffiilleess ffrroomm tthheemm..  TThheerree iiss  nnoo  rreeqquuiirree--
  5763.           mmeenntt  tthhaatt yyoouu uussee aa ppuubblliicc ddiirreeccttoorryy,, ee..gg.. aa ssuubb--
  5764.           ddiirreeccttoorryy ooff yyoouurr hhoommee ddiirreeccttoorryy wwiillll wwoorrkk ffiinnee..
  5765.  
  5766.           FFiinnaallllyy,, iiff yyoouu cchhaannggee tthhee vvaalluuee  ooff  rreeccddiirr,,  yyoouu
  5767.           mmuusstt mmooddiiffyy tthhee rreeccoovveerryy ssccrriipptt ttoo ooppeerraattee iinn yyoouurr
  5768.           cchhoosseenn rreeccoovveerryy aarreeaa..
  5769.  
  5770.           SSeeee tthhee sseeccttiioonn eennttiittlleedd  ""RReeccoovveerryy""  ffoorr  ffuurrtthheerr
  5771.           iinnffoorrmmaattiioonn..
  5772.  
  5773.      rreeddrraaww,, rree [[ooffff]]
  5774.           VVii   only.   The  editor  simulates  (using  great
  5775.           amounts of output), an intelligent terminal  on  a
  5776.           dumb  terminal  (e.g.  during insertions in vvii the
  5777.           characters  to  the  right  of  the   cursor   are
  5778.           refreshed as each input character is typed).
  5779.  
  5780.           _T_h_i_s _o_p_t_i_o_n _i_s _n_o_t _y_e_t _i_m_p_l_e_m_e_n_t_e_d_.
  5781.  
  5782.      rreemmaapp [[oonn]]
  5783.           If  this  option  is set, it is possible to define
  5784.           macros in terms of other macros.  Otherwise,  each
  5785.           key is only remapped up to one time.  For example,
  5786.           if "A"" iiss mmaappppeedd ttoo ""BB", and "B"" iiss mmaappppeedd ttoo ""CC",
  5787.           The  keystroke  "A""  wwiillll  bbee mmaappppeedd ttoo ""CC" if the
  5788.           rreemmaapp option is set, and to "B"" iiff iitt iiss nnoott  sseett..
  5789.  
  5790.      rreeppoorrtt [[55]]
  5791.           Set the threshold of the number of lines that need
  5792.           to be changed or yanked before a message  will  be
  5793.           displayed  to  the  user.   For everything but the
  5794.           yank command, the value is the largest value about
  5795.           which  the  editor  is  silent, i.e. by default, 6
  5796.           lines must be deleted before the user is notified.
  5797.           However,  if the number of lines yanked is greater
  5798.           than _o_r _e_q_u_a_l _t_o the set value, it is reported  to
  5799.           the user.
  5800.  
  5801.      rruulleerr [[ooffff]]
  5802.           VVii  only.  Display a row/column ruler on the colon
  5803.  
  5804.  
  5805.  
  5806.  
  5807.  
  5808.  
  5809.  
  5810.  
  5811.  
  5812.  
  5813. UUSSDD::1133--9900                          VVii//EExx RReeffeerreennccee ((OOppttiioonnss))
  5814.  
  5815.  
  5816.           command line.
  5817.  
  5818.      ssccrroollll,, ssccrr [[((eennvviirroonnmmeenntt vvaarriiaabbllee LLIINNEESS -- 11)) // 22]]
  5819.           Set the number of lines scrolled by the  eexx  <<ccoonn--
  5820.           ttrrooll--DD>> and <<eenndd--ooff--ffiillee>> commands.
  5821.  
  5822.           Historically,  the  eexx  zz  command, when specified
  5823.           without a count, used two times the  size  of  the
  5824.           scroll  value; the POSIX 1003.2 standard specified
  5825.           the window size, which is a better choice.
  5826.  
  5827.      sseeaarrcchhiinnccrr [[ooffff]]
  5828.           The sseeaarrcchhiinnccrr edit option makes the  search  com-
  5829.           mands  //  and  ??   incremental, i.e. the screen is
  5830.           updated and the cursor moves to the matching  text
  5831.           as  the  search pattern is entered.  If the search
  5832.           pattern is not found, the screen is beeped and the
  5833.           cursor remains on the colon-command line.  Erasing
  5834.           characters from the search pattern backs the  cur-
  5835.           sor up to the previous matching text.
  5836.  
  5837.      sseeccttiioonnss,, sseecctt [[NNHHSSHHHH HHUUnnhhsshh]]
  5838.           VVii only.  Define additional section boundaries for
  5839.           the [[[[  and  ]]]]  commands.   The  sseeccttiioonnss  option
  5840.           should  be set to a character string consisting of
  5841.           zero or more character pairs.  In the text  to  be
  5842.           edited,   the  character  string  <newline>.<char-
  5843.           pair>,, ((wwhheerree <<cchhaarr--ppaaiirr>> is one of the  character
  5844.           pairs  in  the  option's value), defines a section
  5845.           boundary in the same manner that ppaarraaggrraapphhss option
  5846.           boundaries are defined.
  5847.  
  5848.      sseeccuurree [[ooffff]]
  5849.           The  sseeccuurree  edit  option  turns off all access to
  5850.           external programs.  This means that  the  versions
  5851.           of  the  rreeaadd  and wwrriittee commands that filter text
  5852.           through other programs, the vvii !!  and  <<ccoonnttrrooll--ZZ>>
  5853.           commands,  the  eexx !!, ssccrriipptt, sshheellll, ssttoopp and ssuuss--
  5854.           ppeenndd commands and file name expansion will not  be
  5855.           permitted.   Once  set, the sseeccuurree edit option may
  5856.           not be unset.
  5857.  
  5858.      sshheellll,, sshh [[eennvviirroonnmmeenntt vvaarriiaabbllee SSHHEELLLL,, oorr //bbiinn//sshh]]
  5859.           Select the shell used by the editor.   The  speci-
  5860.           fied  path is the pathname of the shell invoked by
  5861.           the vvii !!  shell escape command and by the eexx sshheellll
  5862.           command.  This program is also used to resolve any
  5863.           shell meta-characters in eexx commands.
  5864.  
  5865.      sshheellllmmeettaa [[~~{{[[**??$$``''""\\]]
  5866.           The set of characters  that  eexx  checks  for  when
  5867.           doing  file  name expansion.  If any of the speci-
  5868.           fied  characters  are  found  in  the  file   name
  5869.  
  5870.  
  5871.  
  5872.  
  5873.  
  5874.  
  5875.  
  5876.  
  5877.  
  5878.  
  5879. VVii//EExx RReeffeerreennccee ((OOppttiioonnss))                          UUSSDD::1133--9911
  5880.  
  5881.  
  5882.           arguments  to  the  eexx commands, the arguments are
  5883.           expanded using the program defined  by  the  sshheellll
  5884.           option.   The default set of characters is a union
  5885.           of meta characters from  the  Version  7  and  the
  5886.           Berkeley C shell.
  5887.  
  5888.      sshhiiffttwwiiddtthh,, ssww [[88]]
  5889.           Set  the  autoindent and shift command indentation
  5890.           width.  This  width  is  used  by  the  aauuttooiinnddeenntt
  5891.           option and by the <<, >>, and sshhiifftt commands.
  5892.  
  5893.      sshhoowwmmaattcchh,, ssmm [[ooffff]]
  5894.           VVii only.  This option causes vvii, when a "}"" oorr ""))"
  5895.           is entered, to briefly move the cursor the  match-
  5896.           ing "{"" oorr ""((".  See the mmaattcchhttiimmee option for more
  5897.           information.
  5898.  
  5899.      sshhoowwmmooddee,, ssmmdd [[ooffff]]
  5900.           VVii only.  This  option  causes  vvii  to  display  a
  5901.           string  identifying the current editor mode on the
  5902.           colon command line.  The string is preceded by  an
  5903.           asterisk  (``*'')  if  the  file has been modified
  5904.           since it was last completely written,
  5905.  
  5906.      ssiiddeessccrroollll [[1166]]
  5907.           VVii only.  Sets the  number  of  columns  that  are
  5908.           shifted  to  the  left  or right, when vvii is doing
  5909.           left-right scrolling and the left or right  margin
  5910.           is  crossed.   See  the  lleeffttrriigghhtt option for more
  5911.           information.
  5912.  
  5913.      sslloowwooppeenn,, ssllooww [[ooffff]]
  5914.           This option affects the display algorithm used  by
  5915.           vvii,  holding  off display updating during input of
  5916.           new text to improve throughput when  the  terminal
  5917.           in use is slow and unintelligent.
  5918.  
  5919.           _T_h_i_s _o_p_t_i_o_n _i_s _n_o_t _y_e_t _i_m_p_l_e_m_e_n_t_e_d_.
  5920.  
  5921.      ssoouurrcceeaannyy [[ooffff]]
  5922.           If  this option is turned on, vvii historically read
  5923.           startup files that were  owned  by  someone  other
  5924.           than  the  editor  user.  See the section entitled
  5925.           "SSttaarrttuupp IInnffoorrmmaattiioonn" for more information.   This
  5926.           option  is  a  security problem of immense propor-
  5927.           tions, and should not be used  under  any  circum-
  5928.           stances.
  5929.  
  5930.           _T_h_i_s _o_p_t_i_o_n _w_i_l_l _n_e_v_e_r _b_e _i_m_p_l_e_m_e_n_t_e_d_.
  5931.  
  5932.      ttaabbssttoopp,, ttss [[88]]
  5933.           This  option  sets  tab widths for the editor dis-
  5934.           play.
  5935.  
  5936.  
  5937.  
  5938.  
  5939.  
  5940.  
  5941.  
  5942.  
  5943.  
  5944.  
  5945. UUSSDD::1133--9922                          VVii//EExx RReeffeerreennccee ((OOppttiioonnss))
  5946.  
  5947.  
  5948.      ttaagglleennggtthh,, ttll [[00]]
  5949.           This option sets the maximum number of  characters
  5950.           that  are  considered  significant  in a tag name.
  5951.           Setting the value to 0 makes all of the characters
  5952.           in the tag name significant.
  5953.  
  5954.      ttaaggss,, ttaagg [[ttaaggss //vvaarr//ddbb//lliibbcc..ttaaggss //ssyyss//kkeerrnn//ttaaggss]]
  5955.           Sets  the  list  of  tags  files, in search order,
  5956.           which are used when the editor searches for a tag.
  5957.  
  5958.      tteerrmm,, ttttyyttyyppee,, ttttyy [[eennvviirroonnmmeenntt vvaarriiaabbllee TTEERRMM]]
  5959.           Set the terminal type.  Setting this option causes
  5960.           eexx/vvii to set (or reset) the environmental variable
  5961.           TERM..
  5962.  
  5963.      tteerrssee [[ooffff]]
  5964.           This  option has historically made editor messages
  5965.           less verbose.  It has no effect in this  implemen-
  5966.           tation.   See the vveerrbboossee option for more informa-
  5967.           tion.
  5968.  
  5969.      ttiillddeeoopp [[ooffff]]
  5970.           Modify the ~~ command to take an associated motion.
  5971.  
  5972.      ttiimmeeoouutt,, ttoo [[oonn]]
  5973.           If  this option is set, eexx/vvii waits for a specific
  5974.           period for a subsequent key to complete a key map-
  5975.           ping  (see  the kkeeyyttiimmee option).  If the option is
  5976.           not set, the editor waits until  enough  keys  are
  5977.           entered  to  resolve  the ambiguity, regardless of
  5978.           how long it takes.
  5979.  
  5980.      ttttyywweerraassee [[ooffff]]
  5981.           VVii only.  This option changes  how  vvii  does  word
  5982.           erase  during  text input.  If this option is set,
  5983.           text is broken up into two classes, blank  charac-
  5984.           ters  and  nonblank characters.  Changing from one
  5985.           class to another marks the end of a word.
  5986.  
  5987.      vveerrbboossee [[ooffff]]
  5988.           VVii only.  VVii historically bells the  terminal  for
  5989.           many  obvious  mistakes,  e.g. trying to move past
  5990.           the left-hand margin, or past the end of the file.
  5991.           If  this  option  is set, an error message is dis-
  5992.           played for all errors.
  5993.  
  5994.      ww330000 [[nnoo ddeeffaauulltt]]
  5995.           VVii only.  Set the window size if the baud rate  is
  5996.           less  than  1200  baud.  See the wwiinnddooww option for
  5997.           more information.
  5998.  
  5999.      ww11220000 [[nnoo ddeeffaauulltt]]
  6000.           VVii only.  Set the window size if the baud rate  is
  6001.  
  6002.  
  6003.  
  6004.  
  6005.  
  6006.  
  6007.  
  6008.  
  6009.  
  6010.  
  6011. VVii//EExx RReeffeerreennccee ((OOppttiioonnss))                          UUSSDD::1133--9933
  6012.  
  6013.  
  6014.           equal  to  1200  baud.   See the wwiinnddooww option for
  6015.           more information.
  6016.  
  6017.      ww99660000 [[nnoo ddeeffaauulltt]]
  6018.           VVii only.  Set the window size if the baud rate  is
  6019.           greater than 1200 baud.  See the wwiinnddooww option for
  6020.           more information.
  6021.  
  6022.      wwaarrnn [[oonn]]
  6023.           EExx only.  This option causes a warning message  to
  6024.           the  terminal if the file has been modified, since
  6025.           it was last written, before a !!  command.
  6026.  
  6027.      wwiinnddooww,, ww,, wwii [[eennvviirroonnmmeenntt vvaarriiaabbllee LLIINNEESS -- 11]]
  6028.           This option determines the default number of lines
  6029.           in a screenful, as displayed by the zz command.  It
  6030.           also determines the number of  lines  scrolled  by
  6031.           the  vvii  commands <<ccoonnttrrooll--BB>> and <<ccoonnttrrooll--FF>>, and
  6032.           the default number of lines  scrolled  by  the  vvii
  6033.           commands  <<ccoonnttrrooll--DD>>  and <<ccoonnttrrooll--UU>>.  The value
  6034.           of window can be  unrelated  to  the  real  screen
  6035.           size,  although  it  starts  out  as the number of
  6036.           lines on the screen.   See  the  section  entitled
  6037.           "SSiizziinngg tthhee SSccrreeeenn" for more information.  Setting
  6038.           the value of the wwiinnddooww  option  is  the  same  as
  6039.           using the --ww command line option.
  6040.  
  6041.           If  the  value of the wwiinnddooww option (as set by the
  6042.           wwiinnddooww, ww330000, ww11220000 or ww99660000 options)  is  smaller
  6043.           than  the  actual size of the screen, large screen
  6044.           movements will  result  in  displaying  only  that
  6045.           smaller  number  of lines on the screen.  (Further
  6046.           movements in that same area  will  result  in  the
  6047.           screen  being filled.)  This can provide a perfor-
  6048.           mance improvement when viewing different places in
  6049.           one or more files over a slow link.
  6050.  
  6051.           Resetting  the  window  size  does  not  reset the
  6052.           default number of lines scrolled by the  <<ccoonnttrrooll--
  6053.           DD>> and <<ccoonnttrrooll--UU>> commands.
  6054.  
  6055.      wwiinnddoowwnnaammee [[ooffff]]
  6056.           VVii changes the name of the editor's icon/window to
  6057.           the current file name when it's possible  and  not
  6058.           destructive,  i.e., when the editor can restore it
  6059.           to  its  original  value  on  exit  or  when   the
  6060.           icon/window will be discarded as the editor exits.
  6061.           If the wwiinnddoowwnnaammee edit  option  is  set,  vvii  will
  6062.           change   the   icon/window  name  even  when  it's
  6063.           destructive and the icon/window name  will  remain
  6064.           after  the  editor  exits.   (This is the case for
  6065.           _x_t_e_r_m(1)).
  6066.  
  6067.  
  6068.  
  6069.  
  6070.  
  6071.  
  6072.  
  6073.  
  6074.  
  6075.  
  6076.  
  6077. UUSSDD::1133--9944                          VVii//EExx RReeffeerreennccee ((OOppttiioonnss))
  6078.  
  6079.  
  6080.      wwrraapplleenn,, wwll [[00]]
  6081.           This option is identical to the wwrraappmmaarrggiinn option,
  6082.           with the exception that it specifies the number of
  6083.           columns from  the  _l_e_f_t  margin  before  the  line
  6084.           splits, not the right margin.
  6085.  
  6086.           If  both wwrraapplleenn and wwrraappmmaarrggiinn are set, the wwrraapp--
  6087.           mmaarrggiinn value is used.
  6088.  
  6089.      wwrraappmmaarrggiinn,, wwmm [[00]]
  6090.           VVii only.  If the value of the wwrraappmmaarrggiinn option is
  6091.           non-zero,  vvii will split lines so that they end at
  6092.           least that number of columns before the right-hand
  6093.           margin  of  the screen.  (Note, the value of wwrraapp--
  6094.           mmaarrggiinn is _n_o_t a text length.  In a screen that  is
  6095.           80  columns  wide, the command ":set wrapmargin=8_"
  6096.           _a_t_t_e_m_p_t_s _t_o _k_e_e_p _t_h_e _l_i_n_e_s _l_e_s_s _t_h_a_n _o_r  _e_q_u_a_l  _t_o
  6097.           _7_2 _c_o_l_u_m_n_s _w_i_d_e_._)
  6098.  
  6099.           _L_i_n_e_s _a_r_e _s_p_l_i_t _a_t _t_h_e _p_r_e_v_i_o_u_s _w_h_i_t_e_s_p_a_c_e _c_h_a_r_a_c_-
  6100.           _t_e_r _c_l_o_s_e_s_t _t_o _t_h_e _n_u_m_b_e_r_.  _A_n_y  _t_r_a_i_l_i_n_g  _w_h_i_t_e_s_-
  6101.           _p_a_c_e _c_h_a_r_a_c_t_e_r_s _b_e_f_o_r_e _t_h_a_t _c_h_a_r_a_c_t_e_r _a_r_e _d_e_l_e_t_e_d_.
  6102.           _I_f _t_h_e  _l_i_n_e  _i_s  _s_p_l_i_t  _b_e_c_a_u_s_e  _o_f  _a_n  _i_n_s_e_r_t_e_d
  6103.           _<_s_p_a_c_e_>  or  <tab>  _c_h_a_r_a_c_t_e_r_,  _a_n_d _y_o_u _t_h_e_n _e_n_t_e_r
  6104.           _a_n_o_t_h_e_r _<_s_p_a_c_e_> character, it is discarded.
  6105.  
  6106.           If wrapmargin is set to 0, or if there is no blank
  6107.           character  upon  which to split the line, the line
  6108.           is not broken.
  6109.  
  6110.           If both wwrraapplleenn and wwrraappmmaarrggiinn are set, the  wwrraapp--
  6111.           mmaarrggiinn value is used.
  6112.  
  6113.      wwrraappssccaann,, wwss [[oonn]]
  6114.           This option causes searches to wrap around the end
  6115.           or the beginning of the  file,  and  back  to  the
  6116.           starting  point.   Otherwise, the end or beginning
  6117.           of the file terminates the search.
  6118.  
  6119.      wwrriitteeaannyy,, wwaa [[ooffff]]
  6120.           If this option  is  set,  file-overwriting  checks
  6121.           that  would  usually  be made before the wwrriittee and
  6122.           xxiitt commands, or before an  automatic  write  (see
  6123.           the  aauuttoowwrriittee option), are not made.  This allows
  6124.           a write to any file, provided the file permissions
  6125.           allow it.
  6126.  
  6127.  
  6128.  
  6129.  
  6130.  
  6131.  
  6132.  
  6133.  
  6134.  
  6135.  
  6136.  
  6137.  
  6138.  
  6139.  
  6140.  
  6141.  
  6142.  
  6143. VVii//EExx RReeffeerreennccee                                    UUSSDD::1133--9955
  6144.  
  6145.  
  6146.      1199..  IInnddeexx
  6147.  
  6148.      !       21, 42         ?RE?        25         cedit       57
  6149.      ""          42         @       26, 43         change      45
  6150.      #       22, 43         A           27         chdir       45
  6151.      $           22         B           27         columns     58
  6152.      %           22         C           27         comment     58
  6153.      &       23, 51         D           27         copy        45
  6154.      (           23         E           28         count   16, 41
  6155.      )           24         F           28         cscope      45
  6156.      *           43         G           28         current pathname 12
  6157.      +           19         H           28         d           33
  6158.      ,           24         I           28         delete      45
  6159.      /RE/        25         J           29         directory   58
  6160.      0           25         L           29         display     45
  6161.      0<control-D>38         M           29         e           33
  6162.      :           26         N           25         edcompatible58
  6163.      ;           26         O           29         edit        46
  6164.      <       26, 43         P           29         errorbells  58
  6165.      <carriage-return> 14   Q           30         escapetime  58
  6166.      <control-A> 17         R           30         exrc        58
  6167.      <control-B> 17         S           30         extended    58
  6168.      <cont1r7o,l-3D8>, 42         T           30         exusage     46
  6169.      <control-E> 18         U           30         f           33
  6170.      <control-F> 18         W           31         fg          46
  6171.      <control-G> 18         X           31         file    41, 46
  6172.      <control-1H8>, 39         Y           31         filec       58
  6173.      <control-J> 19         ZZ          31         flags       41
  6174.      <control-L> 19         [[          31         flash       59
  6175.      <control-M> 19         -           24         global      47
  6176.      <control-N> 19         ]]          32         hardtabs    59
  6177.      <control-P> 19         ^           32         help        47
  6178.      <control-R> 19         ^<control-D>38         i           33
  6179.      <control-1T9>, 38         _           32         iclower     59
  6180.      <control-U> 20         `<character>23         ignorecase  59
  6181.      <control-2W0>, 39         a           32         insert      47
  6182.      <control-X> 39         abbrev      43         j           19
  6183.      <control-Y> 20         alternate pathname 13  join        47
  6184.      <control-2Z0>, 52         altwerase   56         k       19, 48
  6185.      <control-]> 20         append      44         keytime     59
  6186.      <control-^> 21         args        44         l           21
  6187.      <end-of-file> 40, 42   autoindent  56         leftright   59
  6188.      <erase>     39         autoprint   56         line        41
  6189.      <escape>20, 39         autowrite   57         lines       59
  6190.      <inte1r2r,up3t7>, 39         b           32         lisp        59
  6191.      <line erase>39         backup      57         list    48, 59
  6192.      <literal-next> 12, 39  beautify    57         lock        59
  6193.      <newline>   14         bg          44         m           34
  6194.      <nul>       38         bigword     16         magic       60
  6195.      <space>     21         buffer      13         map         48
  6196.      <word erase>39         c           33         mark        48
  6197.      =           43         cd          45         matchtime   60
  6198.      >       26, 43         cdpath      57         mesg        60
  6199.  
  6200.  
  6201.  
  6202.  
  6203.  
  6204.  
  6205.  
  6206.  
  6207.  
  6208.  
  6209. UUSSDD::1133--9966                                    VVii//EExx RReeffeerreennccee
  6210.  
  6211.  
  6212.      mkexrc      49         stop        52
  6213.      modelines   60         substitute  51
  6214.      motion      15         suspend     52
  6215.      move        48         t       35, 45
  6216.      msgcat      60         tabstop     64
  6217.      n           25         tag         52
  6218.      next        49         taglength   64
  6219.      noprint     60         tagnext     52
  6220.      number  43, 61         tagpop      53
  6221.      o           34         tagprev     53
  6222.      octal       61         tags        64
  6223.      open    49, 61         tagtop      53
  6224.      optimize    61         term        64
  6225.      p           34         terse       64
  6226.      paragraph   16         tildeop     64
  6227.      paragraphs  61         timeout     64
  6228.      path        61         ttywerase   64
  6229.      preserve    49         u           35
  6230.      previous    49         unabbrev    53
  6231.      previous context 15    undo        53
  6232.      print   50, 61         unmap       54
  6233.      prompt      61         unnamed buffer 14
  6234.      put         50         v           47
  6235.      quit        50         verbose     64
  6236.      r           34         version     54
  6237.      range       41         visual      54
  6238.      read        50         viusage     54
  6239.      readonly    61         w           35
  6240.      recdir      62         w1200       64
  6241.      recover     50         w300        64
  6242.      redraw      62         w9600       64
  6243.      remap       62         warn        65
  6244.      report      62         whitespace  14
  6245.      resize      50         window      65
  6246.      rewind      51         windowname  65
  6247.      ruler       62         wn          54
  6248.      s           34         word        16
  6249.      scroll      62         wq          54
  6250.      searchincr  62         wraplen     65
  6251.      section     17         wrapmargin  65
  6252.      sections    63         wrapscan    65
  6253.      secure      63         write       54
  6254.      sentence    17         writeany    66
  6255.      set         51         x           35
  6256.      shell   51, 63         xit         55
  6257.      shellmeta   63         y           35
  6258.      shiftwidth  63         yank        55
  6259.      showmatch   63         z       36, 55
  6260.      showmode    63         {           36
  6261.      sidescroll  63         |           36
  6262.      slowopen    63         }           37
  6263.      source      51         ~       37, 51
  6264.      sourceany   64
  6265.  
  6266.  
  6267.  
  6268.  
  6269.  
  6270.  
  6271.  
  6272.  
  6273.  
  6274.  
  6275. VVii//EExx RReeffeerreennccee                                     UUSSDD::1133--33
  6276.  
  6277.  
  6278.                         TTaabbllee ooff CCoonntteennttss
  6279.  
  6280.      Description ......................................    4
  6281.      Additional Features in Nex/Nvi ...................    4
  6282.      Startup Information ..............................    6
  6283.      Recovery .........................................    7
  6284.      Sizing the Screen ................................    9
  6285.      Character Display ................................    9
  6286.      Multiple Screens .................................   10
  6287.      Tags, Tag Stacks, and Cscope .....................   11
  6288.      Regular Expressions and Replacement Strings ......   13
  6289.      Scripting Languages ..............................   15
  6290.      General Editor Description .......................   16
  6291.      Vi Description ...................................   20
  6292.      Vi Commands ......................................   24
  6293.      Vi Text Input Commands ...........................   53
  6294.      Ex Addressing
  6295.                ........................................   55
  6296.      Ex Description ...................................   57
  6297.      Ex Commands ......................................   59
  6298.      Set Options ......................................   79
  6299.      Index ............................................   95
  6300.  
  6301.  
  6302.  
  6303.  
  6304.  
  6305.  
  6306.  
  6307.  
  6308.  
  6309.  
  6310.  
  6311.  
  6312.  
  6313.  
  6314.  
  6315.  
  6316.  
  6317.  
  6318.  
  6319.  
  6320.  
  6321.  
  6322.  
  6323.  
  6324.  
  6325.  
  6326.  
  6327.  
  6328.  
  6329.  
  6330.  
  6331.  
  6332.  
  6333.  
  6334.  
  6335.  
  6336.  
  6337.