]> git.pld-linux.org Git - packages/vim.git/blob - vim-tutor-lessdeps.patch
- updated to 7.1.285
[packages/vim.git] / vim-tutor-lessdeps.patch
1 --- vim71/src/vimtutor.orig     2007-07-23 10:39:15.051255564 +0200
2 +++ vim71/src/vimtutor  2007-07-23 10:41:17.038772376 +0200
3 @@ -39,23 +39,8 @@
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 "vimN", for people who
8 -# have Vim installed with its version number.
9 -# We anticipate up to a future Vim 8 version :-).
10 -seq="vim vim8 vim75 vim74 vim73 vim72 vim71 vim70 vim7 vim6 vi"
11 -for i in $seq; do
12 -       testvim=`which $i 2>/dev/null`
13 -       if test -f "$testvim"; then
14 -               VIM=$i
15 -               break
16 -       fi
17 -done
18 -
19 -# When no Vim version was found fall back to "vim", you'll get an error message
20 -# below.
21 -if test -z "$VIM"; then
22 -       VIM=vim
23 -fi
24 +# Vim could be called "vim" or "vi".
25 +[ -x /usr/bin/vim ] && VIM=vim || VIM=vi
26  
27  # Use Vim to copy the tutor, it knows the value of $VIMRUNTIME
28  # The script tutor.vim tells Vim which file to copy
This page took 0.035979 seconds and 3 git commands to generate.