vim and /etc/alternatives

Tomas Janousek tjanouse at redhat.com
Sat Mar 10 17:28:51 UTC 2007


Hi,

On Sat, Mar 10, 2007 at 05:23:40PM +0100, Patrice Dumas wrote:
> I want the reverse. 

/etc/alternatives is a solution for both of us, isn't it? :)

> After looking more seems like that when vim-minimal (with vi) and 
> vim-enhanced (with vim) are installed an alias is done in /etc/profile.d 
> to alias vi to vim.

Uh, that's evil :) -- e.g. view still runs /bin/vi.

> Why don't you alias vim to gvim?

Because that would run the gui automatically. We'd need an alias that
preserves argv[0].

-- 
TJ., BaseOS, Brno, CZ




More information about the Fedora-maintainers mailing list