Re: VI vs VIM and why won't it update...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Randall Shaw wrote:
> FC3.i386

> Ok... So it DID install, but then why is there an old 'vi' still
> lingering, and it wasn¹t changed with the new code?

/bin/vi will always act like the old "vi".

> I guess I am confused by this program and how it is supposed to be
> installed. I would have figured yum put the files in the right place, and
> adjust what needed to be adjusted for it to work as expected.

I would guess that you didn't logout after installing vim-enhanced.  The
magic happens via the /etc/profile.d/vim.* files that are installed as
part of vim-enhanced.  They add an alias into the shell so that typing
"vi" actually runs vim.

> Or, worst yet...
> Retrain
> my fingers to type "vim" instead of "vi" ?? OMG NO!

I've actually done that recently, that way even if I'm doing something
that would not have the alias (using su or sudo in some cases) I still get
vim rather than vi.  It also helps if you need to use other distros that
may or may not have an alias for you.

-- 
William Hooper


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux