LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 01-15-2009, 09:18 AM   #1
BillKat
LQ Newbie
 
Registered: Jan 2009
Location: UK
Distribution: Red Hat Enterprise
Posts: 15

Rep: Reputation: 0
vim on CentOS Red Hat 5.2


Hello folks,

I need a utf8-capable editor and gather vim is suitable (if not please shout). I'm new to Linux, and have to manage a dedicated web server, and I'm not confident in installing software...

I've run yum list 'vim*' which returns this:

Installed Packages
vim-minimal.i386 2:7.0.109-3.el5.3 installed
Available Packages
vim-X11.i386 2:7.0.109-4.el5_2.4z updates
vim-common.i386 2:7.0.109-4.el5_2.4z updates
vim-enhanced.i386 2:7.0.109-4.el5_2.4z updates
vim-minimal.i386 2:7.0.109-4.el5_2.4z updates

But no idea what it really means... Looks as if some sort of vim is there, but the command 'vim' gives 'not found'. Any guidance would be much appreciated!
cheers.
 
Old 01-15-2009, 09:41 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 13,766

Rep: Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346
Quote:
Originally Posted by BillKat View Post
Hello folks,

I need a utf8-capable editor and gather vim is suitable (if not please shout). I'm new to Linux, and have to manage a dedicated web server, and I'm not confident in installing software...

I've run yum list 'vim*' which returns this:

Installed Packages
vim-minimal.i386 2:7.0.109-3.el5.3 installed
Available Packages
vim-X11.i386 2:7.0.109-4.el5_2.4z updates
vim-common.i386 2:7.0.109-4.el5_2.4z updates
vim-enhanced.i386 2:7.0.109-4.el5_2.4z updates
vim-minimal.i386 2:7.0.109-4.el5_2.4z updates

But no idea what it really means... Looks as if some sort of vim is there, but the command 'vim' gives 'not found'. Any guidance would be much appreciated!
cheers.
Try typing in just "vi" instead of "vim".
 
Old 01-15-2009, 09:50 AM   #3
BillKat
LQ Newbie
 
Registered: Jan 2009
Location: UK
Distribution: Red Hat Enterprise
Posts: 15

Original Poster
Rep: Reputation: 0
I was using vi but couldn't see multibyte chars with it, i.e. Chinese language characters or Cyrillic ones. Did web searches, found articles saying vi can't do that, use vim instead.
But just found out that puTTy was temperamental, sometimes displaying chars just fine and sometimes not. It needed settings changing to utf8, and now it looks like I can use vi, and can see the multibyte chars despite what the web posts said.

Panic over. Though it's been 14 yrs since I last used vi... am well rusty.
 
Old 01-15-2009, 10:04 AM   #4
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,360

Rep: Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909Reputation: 1909
Regarding your first question the vim executable is provided by vim-enhanced. If you're in doubt about the content of a package just do
Code:
yum info <package-name>
or to retrieve information about already installed packages, simply
Code:
rpm -qi <package-name>
The descriptions of the vim packages are quite exhaustive.
 
Old 01-15-2009, 10:21 AM   #5
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 13,766

Rep: Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346
Quote:
Originally Posted by BillKat View Post
I was using vi but couldn't see multibyte chars with it, i.e. Chinese language characters or Cyrillic ones. Did web searches, found articles saying vi can't do that, use vim instead.
But just found out that puTTy was temperamental, sometimes displaying chars just fine and sometimes not. It needed settings changing to utf8, and now it looks like I can use vi, and can see the multibyte chars despite what the web posts said.

Panic over. Though it's been 14 yrs since I last used vi... am well rusty.
That kinda makes me chuckle. It would have never occurred to me that puTTy was the culprit....I don't use any windows, so I use a 'real' SSH client on Linux....
 
Old 01-15-2009, 10:23 AM   #6
BillKat
LQ Newbie
 
Registered: Jan 2009
Location: UK
Distribution: Red Hat Enterprise
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks folks. I'll carry on with vi for now and look into installing vim later. So much to learn ...
Thanks again.
 
Old 01-15-2009, 10:25 AM   #7
BillKat
LQ Newbie
 
Registered: Jan 2009
Location: UK
Distribution: Red Hat Enterprise
Posts: 15

Original Poster
Rep: Reputation: 0
It really had me going, thing is it was inconsistent too. I've just converted a db to UTF8, and it seemed backups were not in UTF8 so was a bit of panic and a puzzle with the puTTy thing ... phew!
 
  


Reply

Tags
centos, 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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Red Hat Enterprise showing as CENTOS simonm Linux - Newbie 3 09-24-2008 10:26 AM
Red Hat or CentOS on Dell server PE1955 toyk Linux - Hardware 0 08-20-2008 04:07 AM
LXer: Red Hat-based CentOS 5 goes gold LXer Syndicated Linux News 0 04-13-2007 02:16 PM
vi -> vim alias under red hat 7.3 sancho5 Linux - Distributions 4 09-02-2002 01:17 AM


All times are GMT -5. The time now is 06:12 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