Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39467 - Vim and Gvim are both installed, yet in vim the :gui command does not work as expected
Summary: Vim and Gvim are both installed, yet in vim the :gui command does not work as...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High trivial
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-26 09:17 UTC by Dan Noe
Modified: 2004-04-05 20:11 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 Dan Noe 2004-01-26 09:17:17 UTC
According to the vim documentation, when vim is compiled with GUI support one should be able to type :gui and open up a gvim with the current file for editting.  However, under gentoo linux I get this when I type :gui :

E25: GUI cannot be used: Not enabled at compile time

I presume this is related to the method which gentoo uses for packaging vim and gvim separately.  This is a very trivial bug:  I can still use gvim and vim independantly.  However, it would be very nice if this one feature would work.
Comment 1 Dan Noe 2004-01-26 09:23:51 UTC
I forgot to add my version information:

[ebuild   R   ] app-editors/gvim-6.2-r5  
[ebuild   R   ] app-editors/vim-6.2-r5  
[ebuild   R   ] app-editors/vim-core-6.2-r5  
Comment 2 ferret 2004-01-26 09:35:51 UTC
You don't want gvim and vim installed on the system at the same time... They
both provide the "vim" binary. If you remove vim and re-emerge gvim, you can
then start
"vim"
and get a text version, then
":gui"
to try and open gvim of the same doc.
Comment 3 Dan Noe 2004-01-26 09:51:31 UTC
Great!  I feel so silly!  It might be a good thing if these packages had a note or more obvious indication they aren't supposed to co-exist.  It seemed clear to me that the vim package provided text vim and the gvim package provided gvim.  Of course, now that I think it over that makes no sense, since vim is just a symbolic to gvim.

Thanks, especially thanks for providing a speedy answer.. and I apologize for wasting your time. 
Comment 4 ferret 2004-01-27 13:48:45 UTC
I agree, this could definitely be made more obvious.
Comment 5 Aron Griffis (RETIRED) gentoo-dev 2004-02-06 18:31:38 UTC
cool
Comment 6 Dan Noe 2004-03-21 10:23:05 UTC
I have been using this normally for quite some time with only gvim installed - everything works correctly.  However, when I try to update system or world, it wants to install vim again, clobbering the gvim binary.  What is the solution?

root@vindaloo:~# emerge -pu system        

These are the packages that I would merge, in order:

Calculating system dependencies ...done!
[ebuild  N    ] app-editors/vim-6.2-r7  
[ebuild     U ] sys-apps/man-pages-1.66 [1.65] 
[ebuild     U ] sys-libs/pwdb-0.62 [0.61-r4] 
[ebuild     U ] dev-libs/openssl-0.9.7d [0.9.7c-r1] 
[ebuild     U ] sys-kernel/linux-headers-2.4.21-r1 [2.4.21] 
[ebuild     U ] net-misc/openssh-3.7.1_p2-r2 [3.7.1_p2-r1] 
[ebuild     U ] sys-fs/devfsd-1.3.25-r6 [1.3.25-r3] 
Comment 7 Aron Griffis (RETIRED) gentoo-dev 2004-03-21 13:17:41 UTC
Dan, ferret,

It's okay to have both gvim and vim installed at the same time, just the :gui command won't work, as you've found.  I haven't found an easy solution to this problem since everybody wants something different (minimal vim, graphical vim, :gui command, vim that works when everything on the system is broken, etc).  Since most people don't complain about the current configuration, it seems like a good middle ground.

Regarding the emerge system problem, would you mind running the following and reporting what it says?  In theory both vim and gvim should provide virtual/editor, so emerge system shouldn't be trying to install vim again.  But I might be missing the point entirely, so we'll just have to figure this out one step at a time...

grep editor /var/cache/edb/virtuals
Comment 8 Dan Noe 2004-03-21 13:25:01 UTC
Current setup works fine:  However, I had to submit a bug report before I figured out how it was supposed to work.  Perhaps some einfo at the end of the emerge explaining how the packages are organized would be good.  Other than that, its great.

On the emerge issue, I am entirely lost:

dpn@vindaloo:~$ grep editor /var/cache/edb/virtuals
virtual/emacs app-editors/emacs 
virtual/editor app-editors/emacs app-editors/gvim app-editors/nano 
Comment 9 Aron Griffis (RETIRED) gentoo-dev 2004-03-21 13:37:36 UTC
I really don't understand what's happening here.  I'll add dev-portage to the cc, maybe a member of that team could shed some light on this.  I've tested a couple machines and can't repro this behavior.
Comment 10 Nicholas Jones (RETIRED) gentoo-dev 2004-03-25 14:11:21 UTC
emerge --tree -pu system

Something is pulling it in as a dep, or there is a
virtual being handled incorrectly.
Comment 11 Aron Griffis (RETIRED) gentoo-dev 2004-04-04 21:42:52 UTC
Dan, would you mind running the command Nick suggested?
Comment 12 Dan Noe 2004-04-04 21:45:59 UTC
Actually, I ended up doing the update manually, after which point this did not continue to manifest itself.

I suggest the bug be resolved and if it does it again next time vim is updated I'll reopen it.
Comment 13 Aron Griffis (RETIRED) gentoo-dev 2004-04-05 20:11:07 UTC
Ok