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