summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimboss <devnull@localhost>2007-07-17 12:33:46 +0000
committervimboss <devnull@localhost>2007-07-17 12:33:46 +0000
commit1826314f74a77b001cf97f1fb18b3ed2371c5f8d (patch)
tree33a54423f1185d64d3a5d78cd78a12f1437d5d46
parentffb12b6dc7d613e2187872cf7110c7a80c2b11f0 (diff)
downloadvim-1826314f74a77b001cf97f1fb18b3ed2371c5f8d.tar.gz
updated for version 7.1-030v7.1.030v7-1-030
-rw-r--r--src/version.c2
-rwxr-xr-xsrc/vimtutor24
2 files changed, 16 insertions, 10 deletions
diff --git a/src/version.c b/src/version.c
index b94783c3..bfb8cca0 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 30,
+/**/
29,
/**/
28,
diff --git a/src/vimtutor b/src/vimtutor
index 2fbb1371..731b1ef2 100755
--- a/src/vimtutor
+++ b/src/vimtutor
@@ -39,18 +39,22 @@ export TUTORCOPY
# remove the copy of the tutor on exit
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
-# have Vim 5.x installed as "vim" and Vim 6.0 as "vim6".
-testvim=`which vim6 2>/dev/null`
-if test -f "$testvim"; then
- VIM=vim6
-else
- testvim=`which vim`
+# Vim could be called "vim" or "vi". Also check for "vimN", for people who
+# have Vim installed with its version number.
+# We anticipate up to a future Vim 8 version :-).
+seq="vim vim8 vim75 vim74 vim73 vim72 vim71 vim70 vim7 vim6 vi"
+for i in $seq; do
+ testvim=`which $i 2>/dev/null`
if test -f "$testvim"; then
- VIM=vim
- else
- VIM=vi
+ VIM=$i
+ break
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
# Use Vim to copy the tutor, it knows the value of $VIMRUNTIME