Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19922 - vim62a vimrc (line 54) tries to use vim61/ syntax.vim E484 no syntax higlighting
Summary: vim62a vimrc (line 54) tries to use vim61/ syntax.vim E484 no syntax higlighting
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Aron Griffis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-25 05:49 UTC by Aaron Peterson
Modified: 2003-04-27 12:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Peterson 2003-04-25 05:49:40 UTC
I emerged vim62a 
I had vim61 or what ever was current a day before. 
 
root@escargot vim62a # vi /etc/vim/vimrc (or any other file) 
 
Error detected while processing /etc/vim/vimrc: 
line   54: 
E484: Can't open file /usr/share/vim/vim61/syntax/syntax.vim 
Hit ENTER or type command to continue 
 
Line 54 contains: 
  syntax on 
 
I did a :m/61/ 
in the vimrc and did not find any instances of 61... so the bug is elsewhere. 
 
For now I think I'm going to copy the syntax.vim to that directory to see if that is a temporary 
fix. 

Reproducible: Always
Steps to Reproduce:
1.have vim 61 
2.emerge vim-core and vim (6.2_pre1) Witch is BTW a naming error it claims to be an alpha.. 
REM: pre > beta > alpha 
3.Look ma!  No syntax highlighting!
Comment 1 Aaron Peterson 2003-04-25 05:55:30 UTC
Ok, I tried copying the syntax.vim file to /usr/share/vim/vim61/syntax/ 
and that got rid of the error message... but I still have no syntax highlighting 
 
I also just copied all of the syntax directory... and that didn't make it work. 
 
Comment 2 Simonics Zsolt 2003-04-25 06:47:25 UTC
export VIMRUNTIME="/usr/share/vim/vim62a" fixes the problem, so maybe need to uncomment that few line in vim.eclass, which exports this.
Comment 3 Jason Waldhelm 2003-04-25 08:31:26 UTC
env-update fixes this... 
Comment 4 Aaron Peterson 2003-04-26 08:23:10 UTC
cool...  I rebooted and I didn't have sytax higlighting in konsole...but had it in gnome (after copying the files that is)

and this time, I deleted the stuff that I had copied and it worked.



Should the ebuild  for vim contain env-update?
(if it should, then I guess reopen the bug... or just fix it?)
Comment 5 Aron Griffis (RETIRED) gentoo-dev 2003-04-27 12:04:04 UTC
Please see http://marc.theaimsgroup.com/?l=gentoo-dev&m=105124571809387&w=2

The problem is that previously the vim.eclass would install /etc/env.d/40vim.  This file is not necessary, and as you've discovered, causes discomfort when the vim version is upgraded.  Unfortunately, that discomfort can't be completely avoided for this upgraded, but should be avoidable in the future.