File: vi.tut.csh

package info (click to toggle)
vigor 0.016-24
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,936 kB
  • ctags: 3,945
  • sloc: ansic: 44,558; tcl: 1,544; sh: 1,469; makefile: 761; perl: 269; awk: 24; csh: 13
file content (24 lines) | stat: -rwxr-xr-x 468 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/csh -f
#
# This makes the user's EXINIT variable set to the 'correct' things.
# I don't know what will happen if they also have a .exrc file!
#
# XXX
# Make sure that user is using a 24 line window!!!
#
if ($1 != "beginner" && $1 != "advanced") then
	echo Usage: $0 beginner or $0 advanced
	exit
endif

if ($?EXINIT) then
	set oexinit="$EXINIT"
	setenv EXINIT 'se ts=4 wm=8 sw=4'
endif

vi vi.{$1}

onintr:
	if ($?oexinit) then
		setenv EXINIT "$oexinit"
endif