]>
Commit | Line | Data |
---|---|---|
742968eb ER |
1 | --- ./src/vimtutor~ 2005-12-30 03:36:48.000000000 +0200 |
2 | +++ ./src/vimtutor 2006-03-05 14:16:46.590263101 +0200 | |
3 | @@ -39,18 +39,11 @@ | |
4 | # remove the copy of the tutor on exit | |
5 | trap "rm -rf $TODELETE" 0 1 2 3 9 11 13 15 | |
6 | ||
7 | -# Vim could be called "vim" or "vi". Also check for "vim6", for people who | |
8 | -# have Vim 5.x installed as "vim" and Vim 6.0 as "vim6". | |
9 | -testvim=`which vim6 2>/dev/null` | |
10 | -if test -f "$testvim"; then | |
11 | - VIM=vim6 | |
12 | +# Vim could be called "vim" or "vi". | |
13 | +if [ -x /usr/bin/vim ]; then | |
14 | + VIM=vim | |
15 | else | |
16 | - testvim=`which vim` | |
17 | - if test -f "$testvim"; then | |
18 | - VIM=vim | |
19 | - else | |
20 | - VIM=vi | |
21 | - fi | |
22 | + VIM=vi | |
23 | fi | |
24 | ||
25 | # Use Vim to copy the tutor, it knows the value of $VIMRUNTIME |