Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42795 - app-editors/vim clobbers app-editors/vi
Summary: app-editors/vim clobbers app-editors/vi
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Aron Griffis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-24 12:30 UTC by Michael C. Ferguson
Modified: 2004-02-25 06:13 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 Michael C. Ferguson 2004-02-24 12:30:35 UTC
The app-editors/vim ebuild creates a symlink from /usr/bin/vim to /usr/bin/vi.
This is OK as long as we don't have both app-editors/vim and app-editors/vi
installed, but if we install vim after vi, the symlink will overwrite 'regular'
vi. The problem is on line 344 of the vim.eclass file. So we should either
remove like 344, or make vi/vim block eachother.



-- mcf
Comment 1 Aron Griffis (RETIRED) gentoo-dev 2004-02-25 06:13:09 UTC
[ -f /usr/bin/vim ] && ln -s vim /usr/bin/vi 2>/dev/null

Without -f the line above will not clobber a file.  I've had both vi and vim installed forever without a problem.