diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-08-29 21:55:35 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-29 21:55:35 +0200 |
commit | 89a9c159f23fb7b3e24e6d09068adfc24a73afcb (patch) | |
tree | ffc62c1104f8222091cf262a37dbb52bf01f5a61 /src/vimtutor | |
parent | 6e82351130ddb8d13cf3748b47f07cae77886fc7 (diff) | |
download | vim-git-89a9c159f23fb7b3e24e6d09068adfc24a73afcb.tar.gz |
Update runtime files
Diffstat (limited to 'src/vimtutor')
-rwxr-xr-x | src/vimtutor | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/vimtutor b/src/vimtutor index 1e8769b25..3b154f288 100755 --- a/src/vimtutor +++ b/src/vimtutor @@ -1,4 +1,4 @@ -#! /bin/sh +#!/bin/sh # Start Vim on a copy of the tutor file. @@ -13,11 +13,11 @@ # have Vim installed with its version number. # We anticipate up to a future Vim 8.1 version :-). seq="vim vim81 vim80 vim8 vim74 vim73 vim72 vim71 vim70 vim7 vim6 vi" -if test "$1" = "-g"; then - # Try to use the GUI version of Vim if possible, it will fall back - # on Vim if Gvim is not installed. - seq="gvim gvim81 gvim80 gvim8 gvim74 gvim73 gvim72 gvim71 gvim70 gvim7 gvim6 $seq" - shift +if test "$1" = "-g"; then + # Try to use the GUI version of Vim if possible, it will fall back + # on Vim if Gvim is not installed. + seq="gvim gvim81 gvim80 gvim8 gvim74 gvim73 gvim72 gvim71 gvim70 gvim7 gvim6 $seq" + shift fi xx=$1 @@ -53,17 +53,17 @@ export TUTORCOPY trap "rm -rf $TODELETE" 0 1 2 3 9 11 13 15 for i in $seq; do - testvim=`which $i 2>/dev/null` - if test -f "$testvim"; then - VIM=$i - break - fi + testvim=$(which $i 2>/dev/null) + if test -f "$testvim"; then + 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 + VIM=vim fi # Use Vim to copy the tutor, it knows the value of $VIMRUNTIME @@ -71,4 +71,4 @@ fi $VIM -f -u NONE -c 'so $VIMRUNTIME/tutor/tutor.vim' # Start vim without any .vimrc, set 'nocompatible' and 'showcmd' -$VIM -f -u NONE -c "set nocp showcmd" $TUTORCOPY +$VIM -f -u NONE -c "set nocp showcmd" "$TUTORCOPY" |