#! /bin/sh
#
# Start Vim on a copy of the tutor file.

# Use Vim to copy the tutor, it knows the value of $VIMRUNTIME
TUTORCOPY=/tmp/tutor$$
export TUTORCOPY
vim -c ':!cp $VIMRUNTIME/tutor/tutor $TUTORCOPY' -c ':q'

# Start vim without any .vimrc, set 'nocompatible'
vim -u NONE -c "set nocp" $TUTORCOPY

# remove the copy of the tutor
rm $TUTORCOPY
