xref: /openbsd/usr.bin/vi/docs/tutorial/vi.tut.csh (revision df930be7)
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#
9if ($1 != "beginner" && $1 != "advanced") then
10	echo Usage: $0 beginner or $0 advanced
11	exit
12endif
13
14if ($?EXINIT) then
15	set oexinit="$EXINIT"
16	setenv EXINIT 'se ts=4 wm=8 sw=4'
17endif
18
19vi vi.{$1}
20
21onintr:
22	if ($?oexinit) then
23		setenv EXINIT "$oexinit"
24endif
25