Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 19875

Summary: Vim-6.2 seems to use /usr/share/vim/vim61
Product: Gentoo Linux Reporter: Thomas Weidner <3.14159>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: andreas.w.simon
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Thomas Weidner 2003-04-24 05:58:26 UTC
Hi,

after emerging vim-6.2a vim gave the following errors:

thomas@borg-cube vim $ vim
Error detected while processing /etc/vim/vimrc:
line   54:
E484: Can't open file /usr/share/vim/vim61/syntax/syntax.vim
Error detected while processing /home/thomas/.vimrc:
line    1:
E484: Can't open file /usr/share/vim/vim61/syntax/syntax.vim
Hit ENTER or type command to continue

after creating a symlink /usr/share/vim/vim62a -> /usr/share/vim/vim61
everything worked back normal. i don't know why vim 6.2a wants vim61.
Comment 1 Andreas Simon 2003-04-24 06:50:45 UTC
The problem is that vim uses a environment variable defined in /etc/env.d/40vim. 
Unless an env-update is done and /etc/profile is reevaluated, vim still sees the old 
variable pointing to the vim61 directory instead of the new value pointing to vim62. 
 
This is a problem I encounter every other day with Gentoo boxes. I think Gentoo 
should do it like Debian. They had such problems too years ago. Debian sets such 
environment variables in wrapper scripts (i.e. /bin/vim). Then such problems never 
occur again and the user/operator saves valuable time. 
Comment 2 Jason Waldhelm 2003-04-24 10:34:41 UTC
i can confirm that an env-update does fix this problem. 
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-04-24 11:02:22 UTC
etc-update fixed this
Comment 4 Benjamin 2004-07-04 04:59:47 UTC
I am having this problem with vim-6.3 too.
There is no /etc/env.d/40vim on my system even after unmerging and remerging vim-core and vim.