Bug 11455 - vimtutor requires vim-enhanced
vimtutor requires vim-enhanced
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: vim (Show other bugs)
6.2
All Linux
medium Severity low
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-05-16 17:12 EDT by Miloslav Trmac
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-05-16 17:12:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Miloslav Trmac 2000-05-16 17:12:46 EDT
/bin/vimtutor (probably shouldn't be in /bin anyway) assumes 'vim'.

I think it should to something like this (not tested!):

-----------------------------------------

if [ ! -z "$DISPLAY" -a -x /usr/X11R6/bin/gvim ]; then

  VIM=/usr/X11R6/bin/gvim

elif [ -x /usr/bim/vim ];

  VIM=/usr/bin/vim

elif [ -x /bin/vi ];

  VIM=/bin/vi

else

  echo "You don't have vi installed!" >&2

  exit

fi

------------------------------------

and then use '$VIM' instead of 'vim'.
Comment 1 Bernhard Rosenkraenzer 2000-08-08 06:54:18 EDT
Thanks, fixed.

Note You need to log in before you can comment on or make changes to this bug.