LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-05-2011, 08:54 PM   #1
shwethavb
LQ Newbie
 
Registered: May 2011
Posts: 18

Rep: Reputation: Disabled
how to enable vim editor on my pc


i installed redhat5.1 enterprised edition on vmware, and not able to open files using vim editor, please suggest
 
Old 06-05-2011, 09:07 PM   #2
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,860

Rep: Reputation: 238Reputation: 238Reputation: 238
Do you have vim installed?
Is it in your $PATH so it can be found?
Can you launch it by the entire path?

http://www.linuxmanpages.com/man1/find.1.php
http://linux.die.net/man/8/yum
 
Old 06-05-2011, 09:23 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,152
Blog Entries: 14

Rep: Reputation: 3080Reputation: 3080Reputation: 3080Reputation: 3080Reputation: 3080Reputation: 3080Reputation: 3080Reputation: 3080Reputation: 3080Reputation: 3080Reputation: 3080
It may be aliased to vi.
 
Old 06-05-2011, 09:49 PM   #4
bharris
LQ Newbie
 
Registered: May 2011
Posts: 7

Rep: Reputation: Disabled
Anymore info on how it's not letting you edit? Is vim just not installed? You may try
Code:
which vim
which vi
which gvim
to see if it's even installed.
 
Old 06-06-2011, 01:13 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,357

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Code:
rpm -qa |grep vim
 
Old 06-06-2011, 02:37 AM   #6
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
Quote:
not able to open files using vim
are you trying to edit a file with vim and you don't have read access to the file?

You'll need to describe infinitely more precisely what your actual problem is before someone can help you here.
 
Old 06-10-2011, 06:21 AM   #7
shwethavb
LQ Newbie
 
Registered: May 2011
Posts: 18

Original Poster
Rep: Reputation: Disabled
have no vim package installed

Quote:
Originally Posted by bharris View Post
Anymore info on how it's not letting you edit? Is vim just not installed? You may try
Code:
which vim
which vi
which gvim
to see if it's even installed.
when i tried which for vi,vim and gvim, its saying /bin/vi for "which vi" command and says no vim and no gvim for "which vim" and "which gvim"

But when i use command "yum list all|grep vim"
i can see message "vim-minimal.i386 2:7.0.109-3 installed"

Does it mean vim is installed in my pc??
 
Old 06-10-2011, 06:26 AM   #8
shwethavb
LQ Newbie
 
Registered: May 2011
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
Code:
rpm -qa |grep vim
when i issued above given command, i got below output

vim-minimal-7.0.109-3

what does that output mean??
how can i enable Vim ??
please assist
 
Old 06-10-2011, 06:27 AM   #9
softstag
LQ Newbie
 
Registered: Jul 2009
Posts: 9

Rep: Reputation: 0
vim isn't installed, vi is. Use vi instead, it's essentially the same.
 
Old 06-10-2011, 06:50 AM   #10
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
vi is not the same as vim, some commonly used features have subtle differences.

Why not try:

Code:
yum install vim
?
 
Old 06-10-2011, 06:54 AM   #11
shwethavb
LQ Newbie
 
Registered: May 2011
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by MTK358 View Post
vi is not the same as vim, some commonly used features have subtle differences.

Why not try:

Code:
yum install vim
?

when i tried yum install vim, got below 3 lines from output

No repositories available to set up
No match for argument :vim
Nothing to do
 
Old 06-10-2011, 06:57 AM   #12
shwethavb
LQ Newbie
 
Registered: May 2011
Posts: 18

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by 16pide View Post
are you trying to edit a file with vim and you don't have read access to the file?

You'll need to describe infinitely more precisely what your actual problem is before someone can help you here.
i mean to say , am not able to edit any of my files using vim editor but am able to do same using vi editor, seems like vim package not installed. whats the solution for this ?
 
Old 06-10-2011, 07:00 AM   #13
shwethavb
LQ Newbie
 
Registered: May 2011
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
It may be aliased to vi.
if its aliased to vi , can i do anything to make vim enabled for me ?? if so, Please assist me how can i do that?
 
Old 06-10-2011, 11:07 AM   #14
roygbiiv
LQ Newbie
 
Registered: May 2011
Distribution: Arch Linux
Posts: 25

Rep: Reputation: 13
Quote:
Originally Posted by shwethavb View Post
when i tried yum install vim, got below 3 lines from output

No repositories available to set up
No match for argument :vim
Nothing to do
It looks like this is your real problem here. I'm no expert but I think you'll need to fix that first. Look further down in this thread for a solution.

Quote:
if its aliased to vi , can i do anything to make vim enabled for me ?? if so, Please assist me how can i do that?
Your aliases are usually stored globally in /etc/bash.bashrc or locally in ~/.bashrc. Look in those files for lines containing
Code:
alias vim='vi'
and remove that line if it exists.

Last edited by roygbiiv; 06-11-2011 at 02:49 PM.
 
Old 06-11-2011, 03:26 AM   #15
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
The biggest problem your machine has is you have no yum repository configured.
I suggest you open another forum thread for that.
Your solution to get vim is:
Code:
yum install vim
but first get yum fixed you'll need It for any install and for keeping your system updated (security ...)
 
  


Reply


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 editor bimleshkumar007 Linux - Newbie 3 01-04-2011 06:03 PM
LXer: Personalize and Optimize Vim editor using Packtís new Vim 7.2 book LXer Syndicated Linux News 0 05-20-2010 10:20 PM
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 04:26 PM
vim editor kosys Linux - General 6 12-31-2007 10:48 AM
vim editor shabbirhai Linux - General 5 03-02-2006 02:01 AM


All times are GMT -5. The time now is 04:16 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration