home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Spezial / SPEZIAL2_97.zip / SPEZIAL2_97.iso / ANWEND / EDITOR / NVI179B / NVI179B.ZIP / docs / tutorial / vi.tut.csh < prev   
Linux/UNIX/POSIX Shell Script  |  1994-01-23  |  468b  |  25 lines

  1. #!/bin/csh -f
  2. #
  3. # This makes the user's EXINIT variable set to the 'correct' things.
  4. # I don't know what will happen if they also have a .exrc file!
  5. #
  6. # XXX
  7. # Make sure that user is using a 24 line window!!!
  8. #
  9. if ($1 != "beginner" && $1 != "advanced") then
  10.     echo Usage: $0 beginner or $0 advanced
  11.     exit
  12. endif
  13.  
  14. if ($?EXINIT) then
  15.     set oexinit="$EXINIT"
  16.     setenv EXINIT 'se ts=4 wm=8 sw=4'
  17. endif
  18.  
  19. vi vi.{$1}
  20.  
  21. onintr:
  22.     if ($?oexinit) then
  23.         setenv EXINIT "$oexinit"
  24. endif
  25.