Just wondering if anyone can replicate this issue.... On CentOS 5.2, using vim 7.0.237, I'm having a consistent issue across all my centos boxen. if I try and access the help files direct (as root), such as ":help tutor" I get: "usr_01.txt.gz" [readonly][noeol][converted] 11L, 4393C E434: Can't find tag pattern Press ENTER or type command to continue If I press enter, it shows me what appears to be the output of a binary. looking at that top line, it appears as if the help files are compressed, and it can't read the tags within them. Is there a satellite package I need to unpack or enable the ability for vim to decipher these? If I just type ":help" the status line reads: "help.txt" [readonly] 214L, 7883C which is ok, and the text file is displayed correctly. Under Fedora 9, doing a ":help tutor" works correctly, and the status line reads: "usr_01.txt.gz" [readonly][noeol] 11L, 2914C Note the different tag on the centos boxen "[converted]".. Also, /usr/share/vim/vimxx/doc/ seem to be pretty similar (given that Fed9 is vim7.1 and CentOS is 7.0).... even the tags file looks ok on both ends: Fed9: $ grep tutor tags sql-completion-tutorial sql.txt.gz /*sql-completion-tutorial* tutor usr_01.txt.gz /*tutor* vimtutor usr_01.txt.gz /*vimtutor* CentOS 5.2: # grep tutor tags sql-completion-tutorial sql.txt.gz /*sql-completion-tutorial* tutor usr_01.txt.gz /*tutor* vimtutor usr_01.txt.gz /*vimtutor* -- Spiro Harvey Knossos Networks Ltd 021-295-1923 www.knossos.net.nz -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20081217/fbc49137/attachment-0003.sig>
On Wed, 17 Dec 2008, Spiro Harvey wrote:> Just wondering if anyone can replicate this issue.... > > On CentOS 5.2, using vim 7.0.237, I'm having a consistent issue across > all my centos boxen.Is it me, or do you have a newer vim than CentOS is shipping ? [root at rhun ~]# rpm -q vim-common vim-common-7.0.109-4.el5_2.4z Is it possible you messed something up yourself ? -- -- dag wieers, dag at centos.org, http://dag.wieers.com/ -- [Any errors in spelling, tact or fact are transmission errors]
just as a followup, if I ungzip a file, and edit the tags file to reflect the new name, it displays properly. putting it back returns its state to the regular fubar. -- Spiro Harvey Knossos Networks Ltd 021-295-1923 www.knossos.net.nz -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20081217/5628f066/attachment-0003.sig>
On Wed, 17 Dec 2008, Spiro Harvey wrote:> just as a followup, if I ungzip a file, and edit the tags file to > reflect the new name, it displays properly. > > putting it back returns its state to the regular fubar.After looking into this, you can see if it only happens when using 'vi' without an alias to 'vim'. Or does it also happen to 'vim' ? (Beware that as root 'vi' is not aliased to 'vim', but as a user it is) You can directly test using: unalias vi vi -c "h tutor" and unalias vim vim -c "h tutor" I think this is normal behaviour for 'vi' as it does not support gzipped help pages. Seems the case for RHEL too, so it is not specific to CentOS. You might want to to check the same on Fedora too ? Kind regards, -- -- dag wieers, dag at centos.org, http://dag.wieers.com/ -- [Any errors in spelling, tact or fact are transmission errors]
Hi, On Tue, Dec 16, 2008 at 22:12, Spiro Harvey <spiro at knossos.net.nz> wrote:> Just wondering if anyone can replicate this issue.... > > if I try and access the help files direct (as root), such as ":help > tutor" I get: > > If I press enter, it shows me what appears to be the output of a binary.This is a bug long known to me (I never bothered to open a bug report for it though). "vim" has a plug-in to open compressed files, however in compatible mode (which is the mode used when you call "vi" or if you don't have the alias set) the plug-in is not loaded, so it cannot open the helpfiles properly. Never found a good workaround other than using "vim" explicitely. Filipe