Summary: | Vim and Gvim are both installed, yet in vim the :gui command does not work as expected | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dan Noe <dpn> |
Component: | Current packages | Assignee: | Vim Maintainers <vim> |
Status: | RESOLVED WORKSFORME | ||
Severity: | trivial | CC: | dev-portage |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Dan Noe
2004-01-26 09:17:17 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 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. 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. I agree, this could definitely be made more obvious. cool 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] 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 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 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. emerge --tree -pu system Something is pulling it in as a dep, or there is a virtual being handled incorrectly. Dan, would you mind running the command Nick suggested? 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. Ok |