LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   adding vim to current install. (https://www.linuxquestions.org/questions/red-hat-31/adding-vim-to-current-install-443767/)

DotHQ 05-11-2006 07:41 AM

adding vim to current install.
 
I did a few RH AS3.0 Update5 installs and left off vim. Now I would like to add it, but I don't know how.
How can I tell if the rpm (if it exists) is already on my system? If it is not, where is the best place to get the rpm, my AS3.0 U5 cd's or download from somewhere???? Or is vim installed some other way (just copying the file and put it in place). Somehow on my systems with vim when I do a "which vi" the output says:
[root@g3prd1 root]# which vi
alias vi='vim'
/usr/bin/vim

so somewhere it is alias'ing vi ...but it's not in my profile. If I have to do this manually ....where would I do it?
Thanks in advance!

acid_kewpie 05-11-2006 07:44 AM

well is says there that you have a vim binary. so it must be installed as there it is... as for installation, it's on cd1 i beleieve. just mount the cd go to Redhat/RPMS and do "rpm -Uvh vim-common*.rpm"

DotHQ 05-11-2006 07:51 AM

Yes, vim is installed on the server I used to show the alias vim for vi example. I want to add it to server that do not already have it installed. I'll see if I can find the rpm on one of the install cd's.
Thanks.

DotHQ 05-11-2006 08:37 AM

I found the rpm's on CD2 of my set.
However I found numerous vim options.
1. vim-common (largest file size: 3445kb)
2. vim-enhanced (file size: 910kb)
3. vim-minimal (file size: 250kb)
4. vim-X11 (file size: 1027kb)

all are version 6.3.046

So, do I install the common then rpm -U to update that to enhanced, and do the same with vim-X11? I would like enhanced and X11 vim.

DotHQ 05-11-2006 09:03 AM

I went ahead and installed like I was guessing above and it appears to have worked, but vi does not alias to vim.
Where do I put this alias so it works for all users?

DotHQ 05-11-2006 09:08 AM

looks like I found it:

in /etc/profile.d I grep'd for 'vim'
here is the output:

$ grep vim *
vim.csh:alias vi vim
vim.sh: alias vi=vim

so i'm adding the same lines to my new server with vim in the vim.csh and vim.sh files which reside in /etc/profile.d

If there are other places this needs to go please let me know.
Thanks.


All times are GMT -5. The time now is 06:52 AM.