[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: problem reading vim online dox



From: Nate Bargmann [mailto:n0nb@networksplus.net]
> 
> 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.



Reply to: