]> git.pld-linux.org Git - packages/vim.git/blame - vim-tutor-lessdeps.patch
- updated to 7.1.100
[packages/vim.git] / vim-tutor-lessdeps.patch
CommitLineData
cc598b93
AG
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 @@
742968eb
ER
4 # remove the copy of the tutor on exit
5 trap "rm -rf $TODELETE" 0 1 2 3 9 11 13 15
6
cc598b93
AG
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`
742968eb 13- if test -f "$testvim"; then
cc598b93
AG
14- VIM=$i
15- break
742968eb 16- fi
cc598b93
AG
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
742968eb
ER
26
27 # Use Vim to copy the tutor, it knows the value of $VIMRUNTIME
cc598b93 28 # The script tutor.vim tells Vim which file to copy
This page took 0.196261 seconds and 4 git commands to generate.