Re: problem reading vim online dox
Hi all. Back on Thu, 15 Jun 2000 22:47:31 -0700 (PDT) Aaron Maxwell [EMAIL PROTECTED] wrote: In vim, if I type :help I get Sorry, help file /usr/share/vim/vim56/doc/help.txt not found Press RETURN or enter command to continue I get this _exact_ same error message if i type any other help command, eg :help uganda The help files are in the vim-rt package, /usr/share/vim/vim56/doc/*.txt.gz (I'm running potato, vim-rt version 5.6.070-1, vim version 5.6.070-1) I replied to this message thinking that setting the $VIMRUNTIME variable was needed to fix the problem, however, this advice has turned out to be in error. I ran into the same problem this evening on both of my Potato based boxen. It turns out I had created ~/.vimrc back in the Slink days back in December 1999. It was this file that wound up being the culprit. After copying the /etc/vimrc installed by the vim-5.6.070-1 package and edited for my preferences, I'm happy to say that vim works flawlessly and I have now gotten rid of the $VIMRUNTIME variable. If you've upgraded from Slink, I advise updating your ~/.vimrc file after the upgrade if you experience errors similar to Aaron's shown above. - Nate -- Wireless | Amateur Radio Station N0NB | None can love freedom Internet | [EMAIL PROTECTED] | heartily, but good Location | Wichita, Kansas USA EM17hs | men; the rest love not Wichita area exams; ham radio; Linux info @ | freedom, but license. http://www.qsl.net/n0nb/ | -- John Milton
RE: problem reading vim online dox
From: Nate Bargmann [mailto:[EMAIL PROTECTED] I'm not sure as I've seen the reference to the $VIMRUNTIME env variable in the vim docs. Since it seems vim is hardwired to look in /usr/share/vim, perhaps /usr/share/vim should be a sim-link to a real directory of /usr/share/vim56 or whatever the prefered installed version. Vim should be set up with two relevant directories - the first is $VIM, which falls back to /usr/share/vim if not defined (at least on the version of vim which comes with Potato - it's a compile-time option if you build vim yourself). The second is $VIMRUNTIME, which defaults to $VIM/vimNN where NN is Vim's version number (56 for 5.6). So you should have the system vimrc in /usr/share/vim/vimrc, and the runtime files in /usr/share/vim/vim56/, and then everything should work with NO environment variables needed. This is what you get if you do apt-get install vim vim-rt. You need vim-rt, as that contains the runtime stuff (the docs, syntax files, etc). I'm forever installing vim but forgetting vim-rt - was that the original poster's problem? You shouldn't need to set environment variables or move files. If you do, there's a big bug in the vim packages (and I know there isn't in the versions I'm using - 5.6.070-1) Hope this helps, Paul.
Re: problem reading vim online dox
On Mon, Jun 19, 2000 at 03:17:32PM +0100, Moore, Paul wrote: You shouldn't need to set environment variables or move files. If you do, there's a big bug in the vim packages (and I know there isn't in the versions I'm using - 5.6.070-1) That's interesting, Paul. I've done 3 Potato installs, two were fresh and one is an upgrade over Slink. I've wound up setting the $VIMRUNTIME variable after each install. However, I think this may be more of a secondary shell issue than a vim issue. I noticed that after a clean setup, when vim is called from mutt, it complains that it is unable to locate the syntax files. Setting the variable fixes that problem here. I do recall vim being able to find the syntax files if started from an XTerm. I also recall the problem existing if mutt calls vim at the console as well, so it may well be that the problem is how my ~/.bashrc file is configured as the trouble occurs in a secondary shell. I start all my XTerms as login shells. Thanks, - Nate -- Wireless | Amateur Radio Station N0NB | None can love freedom Internet | [EMAIL PROTECTED] | heartily, but good Location | Wichita, Kansas USA EM17hs | men; the rest love not Wichita area exams; ham radio; Linux info @ | freedom, but license. http://www.qsl.net/n0nb/ | -- John Milton
Re: problem reading vim online dox
On Sat, Jun 17, 2000 at 09:24:49AM -0400, t.bedlam wrote: Hmm. Okay, but what if I use tcsh? I mean, what's the *real* (final, technically correct) solution? Well, I never ran tcsh or its variants and that one caught me! I do think there is some way to set environment variables in tcsh as I've seen it referenced elsewhere. Again, without looking, I'll bet we can throw a similar line in /etc/vimrc. I'm not sure as I've seen the reference to the $VIMRUNTIME env variable in the vim docs. Since it seems vim is hardwired to look in /usr/share/vim, perhaps /usr/share/vim should be a sim-link to a real directory of /usr/share/vim56 or whatever the prefered installed version. This would likely cause some problems if mutliple versions are installed. Also, I can see where doing this to a live system would likely hose the packaging system. However, the current layout probably has as many issues. Perhaps contacting the vim package maintainer would provide some insight. - Nate -- Wireless | Amateur Radio Station N0NB | None can love freedom Internet | [EMAIL PROTECTED] | heartily, but good Location | Wichita, Kansas USA EM17hs | men; the rest love not Wichita area exams; ham radio; Linux info @ | freedom, but license. http://www.qsl.net/n0nb/ | -- John Milton
Re: problem reading vim online dox
On Fri, Jun 16, 2000 at 10:24:07PM -0400, t.bedlam wrote: Ah, it's not just me. Vim seems to expect the contents of /usr/share/vim/vim56 to be in /usr/share/vim . My quick and dirty fix before you look/leap was: su cd /usr/share/vim mv vim56/* . rmdir vim56 ln -s . vim56 We should check the bug reports. At the time, I was to busy upgrading and then I forgot. Perhaps a simpler (or better, as it won't confuse the packaging system?) approach is to put this in your ~/.bash_profile: export VIMRUNTIME=/usr/share/vim/vim56 and log out and back in. Works well here! - Nate -- Wireless | Amateur Radio Station N0NB | None can love freedom Internet | [EMAIL PROTECTED] | heartily, but good Location | Wichita, Kansas USA EM17hs | men; the rest love not Wichita area exams; ham radio; Linux info @ | freedom, but license. http://www.qsl.net/n0nb/ | -- John Milton
Re: problem reading vim online dox
On Sat, Jun 17, 2000 at 07:36:31AM -0500, Nate Bargmann was only escaped alone to tell thee: Perhaps a simpler (or better, as it won't confuse the packaging system?) approach is to put this in your ~/.bash_profile: export VIMRUNTIME=/usr/share/vim/vim56 Hmm. Okay, but what if I use tcsh? I mean, what's the *real* (final, technically correct) solution? Again, without looking, I'll bet we can throw a similar line in /etc/vimrc. -- i'm determined to stand, whether god |=| [EMAIL PROTECTED] will deliver me or not. -- bob dylan |=| www.cris.com/~bedlam
problem reading vim online dox
Hi happy people. In vim, if I type :help I get Sorry, help file /usr/share/vim/vim56/doc/help.txt not found Press RETURN or enter command to continue I get this _exact_ same error message if i type any other help command, eg :help uganda The help files are in the vim-rt package, /usr/share/vim/vim56/doc/*.txt.gz (I'm running potato, vim-rt version 5.6.070-1, vim version 5.6.070-1) Intriguingly, if I uncompress the doc files (gzip -d /usr/share/vim/vim56/doc/*.txt.gz), typing :help yields help.txt [readonly] 1297L, 61010C There is only one matching tag File /usr/share/vim/vim56/doc/help.txt.gz does not exist Press RETURN or enter command to continue and then it displays the help file! But if I type :help uganda the response is help.txt [readonly] 1297L, 61010C There is only one matching tag File /usr/share/vim/vim56/doc/uganda.txt.gz does not exist Press RETURN or enter command to continue and it gives the general help file (help.txt[.gz]), instead of telling me how to help Ugandan orphans. If I have all the .txt files compressed except for help.txt, typing :help uganda yields uganda.txt.gz [readonly][noeol] 16L, 3666C 16 lines filtered Error detected while processing BufReadPost Auto commands for *.gz: Invalid expression: :doautocmd BufReadPost . %:r Press RETURN or enter command to continue and _then_ it gives me the correct help file. This works, but it's suboptimal, because next time i upgrade, apt-get won't know to remove the old help.txt (because only help.txt.gz is in the vim-rt packge.) Has anyone run into this problem and solved it? thanks in advance :) Aaron (in san francisco, land of fog)
Re: problem reading vim online dox
On Thu, Jun 15, 2000 at 10:47:31PM -0700, Aaron Maxwell was only escaped alone to tell thee: In vim, if I type :help I get Sorry, help file /usr/share/vim/vim56/doc/help.txt not found Press RETURN or enter command to continue I get this _exact_ same error message if i type any other help command, eg :help uganda Ah, it's not just me. Vim seems to expect the contents of /usr/share/vim/vim56 to be in /usr/share/vim . My quick and dirty fix before you look/leap was: su cd /usr/share/vim mv vim56/* . rmdir vim56 ln -s . vim56 We should check the bug reports. At the time, I was to busy upgrading and then I forgot. -- i'm determined to stand, whether god |=| [EMAIL PROTECTED] will deliver me or not. -- bob dylan |=| www.cris.com/~bedlam