LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 05-11-2006, 07:41 AM   #1
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 542

Rep: Reputation: 33
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!

Last edited by DotHQ; 05-11-2006 at 11:51 AM.
 
Old 05-11-2006, 07:44 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,379

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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"
 
Old 05-11-2006, 07:51 AM   #3
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 542

Original Poster
Rep: Reputation: 33
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.
 
Old 05-11-2006, 08:37 AM   #4
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 542

Original Poster
Rep: Reputation: 33
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.
 
Old 05-11-2006, 09:03 AM   #5
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 542

Original Poster
Rep: Reputation: 33
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?
 
Old 05-11-2006, 09:08 AM   #6
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 542

Original Poster
Rep: Reputation: 33
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.
 
  


Reply

Tags
howto, install, vi, vim


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vim, libacl and libattr in -current hussar Slackware 7 03-28-2006 01:43 PM
KVim can't install before update vim Mathsniper Debian 4 12-22-2005 06:14 PM
Vim/Gcc How To Install? moridon77 Linux - Software 2 06-27-2004 07:14 AM
Adding Syntax Highlighting to VIM TastyWheat Linux - Software 2 02-27-2004 03:37 AM
vim install error eye Red Hat 1 11-13-2003 04:51 PM


All times are GMT -5. The time now is 09:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration