home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume6 / help / part2 / help.dir / vi / starting.HLP < prev    next >
Encoding:
Text File  |  1986-11-30  |  634 b   |  23 lines

  1.  
  2.     To enter vi, just type `vi' and the name of the file to
  3.     edit.
  4.  
  5.       % vi newhelp.c
  6.  
  7.     This will cause vi to read the file, and set up for you to
  8.     edit it.  If the file does not exist, vi will tell you so.
  9.     Editing a new file just gives you a blank buffer to start.
  10.  
  11.     There are options to vi that allow you to start up your
  12.     editing session differently:
  13.  
  14.       % vi + newhelp.c    # start editing at the bottom of the file
  15.  
  16.       % vi +50 oldhelp.c    # start editing at line 50
  17.  
  18.       % vi +/main help.c    # start editing at first occurence of `main'
  19.  
  20.       % vi -r prog2.p       # recover edit session of prog2.p from last
  21.                 # time system crashed
  22.  
  23.