Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vim configuration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pdr
l33t
l33t


Joined: 20 Mar 2004
Posts: 618

PostPosted: Thu Jul 10, 2014 5:47 pm    Post subject: vim configuration Reply with quote

I must have had a vim update recently; now when I fire it up, I get:
Code:
Error detected while processing /etc/vim/vimrc:
line   93: (command is actually "syntax on")
E484: Can't open file /usr/share/vim/syntax/syntax.vim
Error detected while processing /home/sdpr/.vimrc:
line    5:
E185: Cannot find color scheme 'darkblue'
Press ENTER or type command to continue


The first error is understandable - vim stuff is now in /usr/share/vim/{vim74,cream,vimfiles} I assume the upgrade did include a change to a setting somewhere. Any idea where?
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2508
Location: Silver City, NM

PostPosted: Fri Jul 11, 2014 3:32 pm    Post subject: Reply with quote

I fixed the 2nd problem with:
Code:
cd /usr/share/vim
sudo cp vim73/colors/*.vim vim74/colors/
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4565

PostPosted: Fri Jul 11, 2014 6:11 pm    Post subject: Reply with quote

Could it be you both have enabled USE="minimal" for vim and (especially) vim-core?
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2508
Location: Silver City, NM

PostPosted: Fri Jul 11, 2014 7:16 pm    Post subject: Reply with quote

No USE=minimal here but I did install a bunch of color schemes on my own which is why I have to copy them over.
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4565

PostPosted: Mon Jul 14, 2014 7:40 am    Post subject: Reply with quote

BitJam wrote:
No USE=minimal here but I did install a bunch of color schemes on my own which is why I have to copy them over.

OK, but OP's color scheme is "darkblue", which comes with vim-core. If you have a look at the ebuild, with USE="minimal" all color schemes but "default" get removed, as well as all syntax files (and some other things). So I am quite sure that the OP is running USE="minimal".
Back to top
View user's profile Send private message
pdr
l33t
l33t


Joined: 20 Mar 2004
Posts: 618

PostPosted: Fri Jul 25, 2014 11:32 am    Post subject: Reply with quote

Code:
Calculating dependencies... done!
[ebuild   R    ] app-editors/vim-core-7.4.273  USE="nls -acl -minimal" 0 kB
Back to top
View user's profile Send private message
pdr
l33t
l33t


Joined: 20 Mar 2004
Posts: 618

PostPosted: Fri Jul 25, 2014 11:34 am    Post subject: Reply with quote

Oh - and this only showed up a few weeks ago...
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4565

PostPosted: Fri Jul 25, 2014 11:41 am    Post subject: Reply with quote

Do you have a manually installed vim around?
Code:
$ which vim
---
$ find /usr/local -name "*vim*"
Back to top
View user's profile Send private message
pdr
l33t
l33t


Joined: 20 Mar 2004
Posts: 618

PostPosted: Tue Aug 12, 2014 8:29 am    Post subject: Reply with quote

/usr/bin/vim
Back to top
View user's profile Send private message
bothie
n00b
n00b


Joined: 05 Apr 2010
Posts: 5

PostPosted: Sun Mar 27, 2016 9:12 am    Post subject: Reply with quote

Ok, thread is old but still prominent on Google, so:

For me it was a simple version mismatch between app-editors/vim and app-editors/vim:

# ls -ld /var/db/pkg/app-editors/vim-*
drwxr-xr-x 2 root root 4096 27. Mär 11:04 /var/db/pkg/app-editors/vim-7.3.762
drwxr-xr-x 2 root root 4096 27. Mär 06:07 /var/db/pkg/app-editors/vim-core-7.4.769

And

# emerge -1av app-editors/vim

Actually fixed it.

Regards, Bodo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum