Bug 236702 - /bin/vi (vim-minimal) online help doesn't work
/bin/vi (vim-minimal) online help doesn't work
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: vim (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Karsten Hopp
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2007-04-17 02:54 EDT by Yan Li
Modified: 2007-11-30 17:07 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-06-05 16:31:39 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Yan Li 2007-04-17 02:54:04 EDT
+++ This bug was initially created as a clone of Bug #173974 +++

Description of problem:
Because vim help files are compressed, and because minimal vim cannot understand
advance settings in /etc/vimrc which might otherwise help (eg autocmd), when
viewing help with /bin/vi all you get is compressed garbage on the screen.

This kind of error (garbaged display, no reasonable error message) should not
appear in an Enterprise level product.  If vim-minimal doesn't support online
help, a reasonable error message should be displayed if the user went there.

Since now RHEL5 supports VM in Xen, we often do minimal installation of RHEL5
for VMs which uses vim-minimal, so this bugs can often be observed.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
2.:help index

Actual Results:  
1. normal vi startup
2. indigestible garbage on screen

Expected Results: 
Should see a help screen

Additional info:

And I believe that this bug exists on all platforms.

To manually fix:

cd /usr/share/vim/vim63/doc
gunzip *.txt.gz
    :helptags /usr/share/vim/vim63/doc

-- Additional comment from redhat@zacglen.com on 2007-04-10 20:20 EST --
Applicable to Fedora Core 6. Sorry about that.
Comment 2 Steve Bonneville 2007-05-07 16:04:13 EDT
This is exactly the issue reported for Fedora Core 6 in bug #173974.  I also see
this on x86 with vim-{minimal,common,enhanced} installed, so I believe this is
not confined to powerpc.  Reported by training students in class.

The ':help index' command breaks when vim is called as /bin/vi, but works when
wim is called as /bin/vim.  

In addition, the /etc/profile.d/vim.sh file in RHEL5 aliases vi to vim for users
with UID greater than 100, but not for root!  So this problem becomes obvious
for anyone who runs vi as root instead of vim.

The ':help version7' function, along with a rotating collection of others, is
also advertised by /bin/vi when started without a file; they should work as the
program specifies at startup.
Comment 3 RHEL Product and Program Management 2007-06-05 16:31:39 EDT
This request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux release.  Since this
bugzilla is in a component that is not approved for the current
release, it has been closed with resolution deferred.  You may
reopen this bugzilla for consideration in the next release.

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