vim and /etc/alternatives
Tomas Janousek
tjanouse at redhat.com
Sat Mar 10 20:57:36 UTC 2007
Hi,
On Sat, Mar 10, 2007 at 11:46:31AM -0800, Toshio Kuratomi wrote:
> 2) Something like launchvim has no bearing on whether we are going to
> split out /bin/vi from vim/gvim as it does nothing to address the issue
> of /bin/vi needing /usr to be mounted in order to run.
I believe it addresses. /bin/vi will not require /usr to be mounted. Say we
have something like /bin/vi.minimal, /usr/bin/vim.enhanced and
/usr/bin/vim.x11. And /bin/launchvim with all those vis, vims, vimdiffs and
whatever symlinked to it. Then it would launch the most featureful version
available at the moment.
Seems like noone is flaming me, so I'll flame myself. It is a nonsense. This
is certainly not how things should be done. It's better than alternatives
because of that /usr issue. But otherwise it's just an ugly bullshit.
It is better than the current approach, though (imho).
> I'm certain I'm not understanding what you want now. I don't know what
> you're referring to with the "just use the shift key".
Fire up 'gvim -v' in an xterm. Try to select something. Ouch, it moves the
cursor. Fine, do the same while holding the Shift key. Works like normal xterm
selection. Cool.
> alias vim='gvim -v'
Ok, you win, I lose.
So I guess the vim-X11 package needs this:
for cmd in ex rvi rview vi view rvim vim vimdiff; do
echo "alias $cmd = gvim -whatever" >>/etc/profile.d/vim-X11.sh
done
(i know this is never gonna happen, just like i'll never set these aliases and
will use those symlinks and/or debian instead :/)
--
TJ., BaseOS, Brno, CZ
More information about the Fedora-maintainers
mailing list