forked from aniani/vim
updated for version 7.1-030
This commit is contained in:
@@ -666,6 +666,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
30,
|
||||||
/**/
|
/**/
|
||||||
29,
|
29,
|
||||||
/**/
|
/**/
|
||||||
|
24
src/vimtutor
24
src/vimtutor
@@ -39,18 +39,22 @@ export TUTORCOPY
|
|||||||
# remove the copy of the tutor on exit
|
# remove the copy of the tutor on exit
|
||||||
trap "rm -rf $TODELETE" 0 1 2 3 9 11 13 15
|
trap "rm -rf $TODELETE" 0 1 2 3 9 11 13 15
|
||||||
|
|
||||||
# Vim could be called "vim" or "vi". Also check for "vim6", for people who
|
# Vim could be called "vim" or "vi". Also check for "vimN", for people who
|
||||||
# have Vim 5.x installed as "vim" and Vim 6.0 as "vim6".
|
# have Vim installed with its version number.
|
||||||
testvim=`which vim6 2>/dev/null`
|
# We anticipate up to a future Vim 8 version :-).
|
||||||
if test -f "$testvim"; then
|
seq="vim vim8 vim75 vim74 vim73 vim72 vim71 vim70 vim7 vim6 vi"
|
||||||
VIM=vim6
|
for i in $seq; do
|
||||||
else
|
testvim=`which $i 2>/dev/null`
|
||||||
testvim=`which vim`
|
|
||||||
if test -f "$testvim"; then
|
if test -f "$testvim"; then
|
||||||
VIM=vim
|
VIM=$i
|
||||||
else
|
break
|
||||||
VIM=vi
|
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# When no Vim version was found fall back to "vim", you'll get an error message
|
||||||
|
# below.
|
||||||
|
if test -z "$VIM"; then
|
||||||
|
VIM=vim
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use Vim to copy the tutor, it knows the value of $VIMRUNTIME
|
# Use Vim to copy the tutor, it knows the value of $VIMRUNTIME
|
||||||
|
Reference in New Issue
Block a user